0
cant find scanner.
i am trying to do a alg with java.util.scanner and when i run it it shows that i dont have any package as scanner in eclipse. where do i find this scanner package. i am new in programming pls help
3 Antworten
+ 5
import java.util.Scanner;
theres also a wildcard...
import java.util.*;
dont forget to create an instance of scanner 😜
Scanner scn = new Scanner(System.in);
+ 2
To clarify what they are saying, the "scanner" must have a capital "s" at the beginning.
So this:
import java.util.Scanner;
^
And not:
import java.util.scanner;
^
Happy coding!
0
thanks guys i figured it out tho.