Java Substring

  • + 0 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.