文字列 s をパラメーターとして受け取る StringToekenizer オブジェクトでトークンを分離するにはどうすればよいですか?
それで:
String s = input.readLine();
char tokenSeparator = ' '; //can be any value other than white space.
StringTokenizer str = new StringTokenizer(s);
//separate tokens by the variable char tokenSeparator;
while (str.hasMoreTokens) ...