That part actually compiled okay, it's just the ending print out always comes back as 0.
Type: Posts; User: JohnBowers
That part actually compiled okay, it's just the ending print out always comes back as 0.
Thank you for the answer, I was able to get my code to finish without any interferences, however it does not work correctly. The finalPrime always equals 0 for some reason, do you have any idea why...
public class primes
{
// instance variables - replace the example below with your own
private static int[] primes;
private static int numPrimes;
private static int ndx;
...