( or [ expected error message

I have constructed a simple class and can't understand why I get an erro message : '( ' or '[' expected error message in the constructor.

This is part of my code:

public static void main(String [] args)throws java.lang.Exception

{

Operator operator = new Operator();

}

public Operator()

{

milkProportion = 30;

chocProportion = 60;

nutProportion = 10;

temp = 50;

ArrayList<String> ingrdnt = new ArrayList<String>(); // this is the line where I am getting the error message

ingrdnt.add("milk");

ingrdnt.add("chocolate");

ingrdnt.add("nut");

ingrdnt.add("temperature");

//create a reader so that the system can retrice what the user has inputted

reader = new BufferedReader(new InputStreamReader(System.in));

randomTime = new Random();

for (int i = 0; i<= 10; i++){

startProcess();

try{

Thread.sleep(randomTime.nextInt(31) * 1000);

}catch (Exception e){}

}

}

Please could someone help me, I have counted the number of parentheses many many times and can't figure out what I have done wrong?

[1182 byte] By [tw@@niea] at [2007-10-2 14:23:11]
# 1
Are you using the right version of javac to compile? You are using generics. So, you have to be using javac from JDK 5.0 or above. You may want to checkjavac -J-version
sundararajan.aa at 2007-7-13 12:41:57 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...