Grounds Up Java Tutorial (Primes)

wxdqz

New Member
The Primes.class tutorial/example doesn't compile - there is an error at statement 32: cnt; Error generated is 'not a statement'. can anyone help? As you may guess, I am new to java. thanks.

29: while ( cnt > 0 ) {
30: if ( isPrime(sta) ) {
31: arr[idx++] = sta;
32: cnt;
33: }
34: sta++;
35: }
 
Back
Top