I have an ArrayList in Java which is full of int’s. I am accessing it through get method. Now, I need array list int objects as ints to perform some operations. So, what I am doing is,
int i = Integer.parseInt(arraylist.get(position).toString()) + 100 ...
Is there any-other nice way to do it (means efficiently) ?
What version of Java are you using? Since Java 1.5 the ‘autoboxing’ feature should take care of this for you.