I'm trying to see if the user input is an int but the error I'm getting is int cannot be a deference could someone explain to me what does that mean? Thanks
import java.util.Scanner; public class FibonacciNumbersTester { public static void main(String[]args) { //Variables Scanner userNum = new Scanner(System.in); Scanner userDed = new Scanner(System.in); String userChoice = "Y"; FibonacciNumbers reMethod = new FibonacciNumbers(); while(userChoice.equalsIgnoreCase("Y")) { System.out.print("What integer would you like to calculate the Fibonacci number for? "); int NumTo = userNum.nextInt(); if(NumTo.hasNextInt()) { System.out.println("Please enter an integer!"); } int fiboPrint = reMethod.numFibo(NumTo); reMethod.printData(fiboPrint); System.out.print("Would you like to continue? (Y/N)"); userChoice = userDed.next(); } } }