0
Any one help me in this
3 Antworten
+ 11
Hii Adam Chacha
Seems like you should have a look again on the lesson in order to clear the concept 100%
~https://www.w3schools.com/java/java_user_input.asp
+ 1
Scanner is a class in Java that comes in java.util package.
In order to use Scanner, you need to import it first.
import java.util.Scanner;
0
Scanner class is located inside java.util package
to create an instance of it, use full package name
java.util.Scanner scanner = new java.util.Scanner(System.in);
or u can just import package namr in your code
import java.util.Scanner;