あるメソッドからユーザー入力を取得して、別のメソッドで使用しようとしています。どちらも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;
}