将字符串弄成数组
String
str
=
"asdf dfd dfd dfwe sdfsdf erew"
;
String[]
dd
=
str
.split(
"\\s+"
);
for
(String
s
:
dd
){
System.
out
.println(
s
);
}