I want to return userYear, or in other words, the input the user gives me. It tells me to initialize the variable outside the loop. When I do that, it tells me the variable is duplicated. What I want to do is simply return the input so that my other program methods can use them.

```
public static int readTheYear() {

    Scanner scan = new Scanner(System.in);
    boolean correctYear = false;
    do
    {
        System.out.println("Enter theyear:");
        int userYear = Integer.parseInt(scan.nextLine());
        if(userYear > 2025)
        correctYear = true;

        else 
        System.out.println("Invalid. Try again.");

    }
    while (!correctYear);

    correctYear = false;
    return userYear; // gives an error

}

```