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.
You must import static java.lang.System.in, and you must have to import with "static" , It tells JVM that to create this from proram start until program ends.
Also you can try if you wonder, you can not use any other variable name beside "in" on line written 'BufferedReader'
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Prime Checker
You are viewing a single comment's thread. Return to all comments →
You must import static java.lang.System.in, and you must have to import with "static" , It tells JVM that to create this from proram start until program ends. Also you can try if you wonder, you can not use any other variable name beside "in" on line written 'BufferedReader'