good afternoon everyone i am working on a prime number generator and i am confused on a couple things. first thing is i am getting an error for my Boolean isPrime statement. also i have to create a method to generate the next prime number here is what i have so far. i commented out the next prime until i get the first half to work. i figured no sense in trying to do two separate methods at once. heres my code
/** This class prints out all the prime numbers of an input value. */ public class PrimeGenerator { public PrimeGenerator() { } { boolean isPrime(int num) boolean prime=true; for(int x=2; x<num; x++) if(num %x==0) prime=false; } /** Calculate the next prime number of an input. @return the next prime number */ /*public int nextPrime() { do while }*/ private int num; }