i am trying to make an ArrayList of type integer, but it gives me this error(I am using this compiler called jikes) Code:
ArrayList<Integer> = new ArrayList<Integer>();
Error:
***Semantic error: using type arguments to access generic types requires the use of "-source 1.5"'or greater. Compilation will continue to use the raw type "Java.util.arraylist", but no class file will be emitted.
ArrayList<Integer> list = new ArrayList<Integer>();. And your compiler level is most likely1.4. You need at least1.5to use generics. Read the manual/help page of your compiler to find out how to do that.