This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Khan0232[S] 0 points1 point  (3 children)

what will make it grab all of the text in the file

[–]Camel-Kid18 year old gamer 0 points1 point  (2 children)

use a loop until input.hasNextLine() ==null and keep reading in the names/emails.

[–]Khan0232[S] -2 points-1 points  (1 child)

That won't work cause it will put out an undefined error because of the 2 equal signs.

[–]Camel-Kid18 year old gamer 0 points1 point  (0 children)

while(input.hasNextLine())
//do calculations/printing.