I get this error when trying to use the Scanner object:
Main.java:105: error: cannot find symbol
The Scanner
library is already imported
Here is my code :
Scanner in= new Scanner(System.in);
public int play(int pieces){
Scanner in= new Scanner(System.in);
int num;
num = in.nextInt();
return pieces-in;
}