Error message
Hi I am having problems with my code.
It is given me an error message stating "cannot find symbol variable
NotCont" on line 26.
1-import java.util.Scanner;
2-public class IntegerSetTest
3-{
4- public static void main(String[] args)
5- {
6- Scanner input = new Scanner (System.in);
7-
8- System.out.println("Welcome to the Integer Set\n");
9-
10- System.out.println("This program is going to find the union "
+
11- " or intersection of any two sets you enter" +
12- "\nPlease enter the number of sets: ");
13- int intArray[] = new int[100];
14- int value;
15- try
16- {
17- do
18- {
19- int i;
20-
21- value = input.nextInt();
22- intArray[i]=value;
23- System.out.println("Enter -1 to end: ");
24- int NotCont = input.nextInt();
25- i++;
26- }while(NotCont != -1);
27-
28- for(int i=0; i<intArray.length;i++)
29- {
30- System.out.println(intArray[i]);
31- }
32- }
33- catch(NumberFormatException ex)
34- {
35- }
36- }
37-}