Syntax error in collection

the problem arise when i try to compile the following codeArrayList<Integer>=new ArrayList<Integer>();the errors are in following tokens '<' &'>'.the compiler wants argument after '>' .
[237 byte] By [youngswaa] at [2007-10-2 15:15:54]
# 1
You are missing the name of the variable (or field if the declaration is at class level) after ArrayList<Integer> - something like:ArrayList<Integer> myList = new ArrayList<Integer>();
sundararajan.aa at 2007-7-13 14:18:30 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
actually i assigned the variable. the problem is arised when i compile the code in command prompt(win32). but all are going fine if i compile it from netbeans
youngswaa at 2007-7-13 14:18:30 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3
Did you check your command line javac version? You may want to checkjavac -J-version it should print something like java version "1.5.0_06"i.e., you can use generics only with JDK 1.5.0 or above.
sundararajan.aa at 2007-7-13 14:18:30 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...