Java End-of-file

  • + 0 comments
    while (sc.next()){
    System.out.println(i++ +" "+ sc.nextLine());
    }
    sc.close();