Hi, I want to use an ArrayList of long but

ArrayList<long>liste = new ArrayList<long>();

doesnt work. Eclipse changes it to

ArrayList<long[]>liste = new ArrayList<long[]>();

. What to do? I really need an arraylist of long values. Thanks.

You need ArrayList<Long>. Long is the wrapper class for the primitive long. Autoboxing will convert your long values to Long for you when you add them to the ArrayList.