Hello, I've been going through a tutorial and have copied some code from it, It give's me an error prompt (well not error, the program still runs, more of a suggestion I guess...) telling me to close the scanner, yet in the code that I've copied there's nothing on the left of his screen... Im a bit confused why this is.

here's the code in my Eclipse ;



here's the code in his without the little error thing on the left



My program does the expected (asks for number then ends when the right one is given) but it has that little prompt on it.

If anyone could shed some light that'd be great.

Cheers