Код: Выделить всё
firstName = strTkn.nextToken();
middleInitial = strTkn.nextToken(".");
//changing the delimiters to a . because there is no space between D and Frogge
lastName = strTkn.nextToken(" ");
//changing delimiters back to a space
hourlyWage = Double.parseDouble(strTkn.nextToken());
Код: Выделить всё
Kermit
D
.Frogge
Подробнее здесь: https://stackoverflow.com/questions/130 ... nt-show-it
Мобильная версия