public class ClassLib
{
public static void main(String[] args) {
String s="a d d s w a s d";
String[] re=s.split("\\s+");//String[] re=s.split("^\\s+$");
System.out.println(re.length);
for(int i=0;i<re.length;i++)
System.out.println(re[i].toString());
}
}