4th Dec 2020, 9:53 AM
Asif
Asif - avatar
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
4th Dec 2020, 1:20 PM
Piyush
Piyush - avatar
+ 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;
4th Dec 2020, 9:55 AM
Minho
Minho - avatar
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;
4th Dec 2020, 9:56 AM
durian
durian - avatar