public class D {
public static void main(String[] args) {
String b = "Hello Java World";
System.out.println("原字符串:"+b);
/*把字符串轉化為數組形式,並用正則表達式進行分割*/
String [] c = b.split("\\s+");
for (String ss : c){
System.out.println(ss);
}
}
