Scanner class is used to read input. — Scanner scan = new Scanner(System.in); This is the general syntax for reading from stain using the scanner class. This can be accessed using variable name scan. And don't forget to close it after reading input. scan.close();
Your Commento.io account has been suspended. Go to the Commento dashboard to resolve this.