Java5 String text = "XSP allows to use Java5 syntax, if running under a 1.5+ JVM."; for ( String word : text.split(" ") ) { word+" " }