I am trying to take the user input from one method and use it in another. I am confused about the error because they are both of type int.
public static void move()
{
System.out.println("What do you want to do?");
Scanner scan = new Scanner(System.in);
int userMove = scan.nextInt();
}
public static void usersMove(String playerName, int gesture)
{
int userMove = userMove.move(); //error is here
if (userMove == -1)
{
break;
}