CodePudding user response:
Break up, not separate, called the wrong numberCodePudding user response:
For exampleString STR=new String [] [] {DE "ABC", "qq ABC"};
For (String s: STR) {
String [] TMP=s.s plit (" \ \ s + ");
System. The out. Println (Arrays. ToString (TMP));
}
CodePudding user response:
Can ahString [] strArrs=new String [] {DE "ABC", "qq ABC"};
String STR=strArrs [0].
String [] arrs=STR. The split (" ");
For (int I=0; I & lt; Arrs. Length; I++) {
System. The out. Println (" first "+ I +" value "+ arrs [I]);
}