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

14th Oct 2017, 9:46 PM
Rafif Zahin
Rafif Zahin - avatar
3 Answers
+ 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);
14th Oct 2017, 9:59 PM
D_Stark
D_Stark - avatar
+ 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!
14th Oct 2017, 11:14 PM
LunarCoffee
LunarCoffee - avatar
0
thanks guys i figured it out tho.
15th Oct 2017, 4:17 AM
Rafif Zahin
Rafif Zahin - avatar