How to invoke a java method
<p>I am very new at java coding. I am having difficulty finding out how to link my <code>main</code> method with the method that determines if a value is prime. When I run the code below in eclipse, the method doesn't seem to execute at all. Does anyone know what I did wrong? </p>

<p>Also, for the last part I was thinking of having <code>System.out</code> print whether the input value is prime or not. ie <code>true</code> or <code>false</code> would be fine. </p>

<pre><code>import java.util.*;

class IsPrime {
    public boolean isprime(int n) {
        Scanner input1= new Scanner(System.in);
        System.out.println("input single integer?");

        int n1 = input1.nextInt();

        int i,c=0;

        for(i=1;i&lt;=n1;i++) {
            if(n1%i==0){
                c++;
            }
        }
        if(c==2) {
            return true;
        } else {
            return false;  
        }
        System.out.println("Your number is:")
    }
}
</code></pre>
