Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Scanner input in Eclipse

$
0
0
Just something I'm curious about, in Eclipse when I use:

Scanner input = new Scanner(System.in);
System.out.println("Enter a degree in Celsius: ");
double celsius = input.nextDouble();


Why does eclipse underline input after Scanner inputer in Yellow and call it a "resource leak" and say input is never closed?

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>