So I didn't get. Why somewhere we don't close SCANNER, but somewhen we close it! ARRRGH! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

So I didn't get. Why somewhere we don't close SCANNER, but somewhen we close it! ARRRGH!

And what if i input some data on the round?should i close SCANNER after each use?

15th Jan 2017, 7:36 PM
Nochains
Nochains - avatar
3 Answers
+ 3
Because, sometimes, the java compiler do it for you ^^ ( I'm java rookie: I can't tell you much more )
15th Jan 2017, 7:51 PM
visph
visph - avatar
+ 1
LoL
16th Jan 2017, 5:40 AM
Nochains
Nochains - avatar
- 1
Cause they forgot to close it. LOL
15th Jan 2017, 11:56 PM
The PGDeveloper
The PGDeveloper - avatar