RU beehive logo ITEC dept promo banner
ITEC 120
2009spring
ibarland
nokie
jmdymacek

homeinfolectslabsexamshws
textbooktutor/PIsjava.lang docsjava.util docs

lab13a
acronyms
arrays of strings


1

Really, you should indicate that words are separated by “one or more spaces”, which is denoted by " +", a regular expression meaning “one or more occurrence of a space character”.

In fact, if you want, you can provide fancier regular expressions so split, so that it will split words by one or more punctuation or spaces: split("[ ,!?-']+"). The “[]” means “any of the characters enclosed in the brackets”, and the “+” means “one or more of the previous thing”.

     

homeinfolectslabsexamshws
textbooktutor/PIsjava.lang docsjava.util docs


©2009, Ian Barland, Radford University
Last modified 2009.Apr.21 (Tue)
Please mail any suggestions
(incl. typos, broken links)
to iba�rlandrad�ford.edu
Powered by PLT Scheme