```
package checkPrime;

import java.util.Scanner;

public class CheckPrime {

    public static void main(String[] args) {

        boolean isPrime = true;

        Scanner scanner = new Scanner(System.in);

        System.out.print("Enter a number: ");   
        int n = scanner.nextInt();

        scanner.close();

        for (int i = 2; i < n; i++) {

            if (n % i == 0) {

                isPrime = false;

            }

        }

        if (isPrime = false || n == 1) {

            System.out.print(n + " is not prime.");

        } else {

            System.out.print(n + " is prime.");

        }

    }

}

```

So I wrote this program to check if a number is prime and it's working well, but I get this error on the line where the boolean "isPrime" is declared: "The value of the local variable isPrime is not used.". It's not affecting the functionality of my program but I was wondering if there is any way to make it go away.