We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
System.out.println(i + " " + scan.nextLine());
if(scan.hasNext()==false)
System.exit(0);
}
#Generally System.exit(0) is used to terminate the JAVA Program
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java End-of-file
You are viewing a single comment's thread. Return to all comments →
for(int i=1; scan.hasNext()==true; i++){