- 1
"Resource Leak: '<var_name>' is never closed" in Java. What does that mean?
So i'm just starting out in Java and i've been having these "warning" messages; Scanner scal= new Sacnner(System.in); "Resource Leak: 'scal' is never closed" I still can compile but i can't seem to understand what's happening.
2 Respuestas
+ 3
scal.close() at the end of using it.
0
Thanks a lot!!