import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
public class next {
public static void main(String[] args) {
Integer ar[] = { 11, 22, 33, 44, 55, 66, 77, 88, 99 };
ArrayList list = new ArrayList();
for (Integer int1 : ar) {
list.add(int1);
}
Iterator it = list.iterator();
while (it.hasNext()) {
Integer myint = (Integer) it.next();
myint = myint + 9;
System.out.print(myint + "\t");
}
}
}
Output
20 31 42 53 64 75 86 97 108If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.