ATIBA nextInt is method of Scanner class..so whenever you use nextInt you must have to create object of Scanner class then use can use nextInt. In your class main there is no any object of Scanner...
Type: Posts; User: akymcs
ATIBA nextInt is method of Scanner class..so whenever you use nextInt you must have to create object of Scanner class then use can use nextInt. In your class main there is no any object of Scanner...
i wrote for this..
error:Scanner ob=new Scanner(System.in);.saying cannot find symbol
now the next what hi say can not find symbol it will require complete code...
you have to import java.util.Scanner;
then code runs well