Not sure if I am properly writing methods to return true or false
<p>So for a homework assignment I was tasked with writing code that included 5 static methods. Two of them asked for the following:<br>
"Write a method that takes an integer X as an argument, and returns true if X is even, and false if X is odd."<br>
and<br>
"Write a method that takes a positive integer N as an argument, and returns true if N is prime, and false otherwise. Assume N > 1."<br>
I have written their code </p>

<pre><code>public class MethodSignature {

public static boolean evenCheck(int x){
    if(x % 2 == 0){
        return true;
    }
    else{
        return false;
    }
}

public static boolean primeCheck(int N){
    for(int i=2;i&lt;N;i++){
        if(N % i == 0){
            return false;
        }
    }
    return true;
}

public static void main(String [] args){
    int x = 3;
    int N = 5;
    System.out.println(evenCheck(x));
    System.out.println(primeCheck(N));
    }
}  
</code></pre>

<p>It is unclear to me if I am required to have the methods print out true or false. Before I added the println to the method calls they did not print, obviously. So I guess I have two questions: Does a boolean method have to print true/false to return true false? And if I was asked specifically to do that, am I doing it the simplest/most efficient way? Or is there something I am missing?  </p>

<p>Thanks a lot you guys.<br>
D</p>