String str = "test test1 test2 test3"; String [] arr = str.split("\\s+"); for(String ss : arr){ System.out.println(ss); }
String str = "test test1 test2 test3"; String [] arr = str.split("\\s+"); for(String ss : arr){ System.out.println(ss); }
转载于:https://www.cnblogs.com/kinome/p/10008696.html