This content has been marked as final. Show 2 replies
because i suspect this is a homework assignment i'm not going to give you the fish, but i will teach you how to fish! =P
go investigate the Java Standard class called: BufferedReader. Look specifically at the method readLine()
combine that with a for loop, and an IF-THEN statement to weed out the lines you don't want (or just govern that with the FOR loop's index), and you should be able to figure it out....
good luck! give it a whirl...