Just something I'm curious about, in Eclipse when I use:
Why does eclipse underline input after Scanner inputer in Yellow and call it a "resource leak" and say input is never closed?
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?