A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

That "dummy line/ghost line" in Java

1.4k views · started by Spammathon ·
#1
That "dummy line/ghost line" in Java
After recalling scanners, I just realized I still don't understand that dummy line/ghost line thing.
...
Which could really screw me over when using .dat files (in CS competitions).

:l

Can anybody explain it please? :3
#2
Spammathon wrote:
After recalling scanners, I just realized I still don't understand that dummy line/ghost line thing.
...
Which could really screw me over when using .dat files (in CS competitions).

:l

Can anybody explain it please? :3


Not sure exactly what you're referring to, could you be more specific?
#3
I think I'll experiment it with it later, got other stuffs to do right now

But it had to do something with java scanners when you use both .nextInt() and .nextLine()
(like when you alternate them)
#4
just google it
#5
Wow.


I was just about to prove you that I couldn't find such a answer....

and then one pops up on yahoo answers... of all places ._.
#6
Spammathon wrote:
Wow.


I was just about to prove you that I couldn't find such a answer....

and then one pops up on yahoo answers... of all places ._.


Link to the answer?