|
Delimited Output
This lecture has been re-organized. See the lecture on delimiting strings . |
|
Prof. David Bernstein
|
| Computer Science Department |
| bernstdh@jmu.edu |
String that contains
(and/or print) multiple items with a delimiter between
items (but not before the first or after the
last)"Rain,Sleet,Snow"
from a String[] containing the three words
"Rain, Sleet, and Snow")if
statement
"rain, sleet, and snow" rather than
"rain, sleet and snow"
", " as delim
", and " as lastdelim