You are viewing a single comment's thread. Return to all comments →
Scanner scan = new Scanner(System.in);
opens a Scanner to read from System.in. This takes resources. scan.close() closes these resources when we are done with them, which is good practice.
HackerRank solutions.
Seems like cookies are disabled on this browser, please enable them to open this website
Java Substring
You are viewing a single comment's thread. Return to all comments →
opens a Scanner to read from System.in. This takes resources. scan.close() closes these resources when we are done with them, which is good practice.
HackerRank solutions.