QUESTION 4 What would be the output of the following code? ArrayList<Integer> list = new ArrayList<Integer>(); list.add(1); list.add(7): list.add(22) list add 100) System.out.print(list.get(i) +โ "); list.set(2,50); list.remove(1) for(int i-list.size(); i > list.size()/2; i--) System.out.print(list.get(i) + " "); a 22 7 100 1 22 50 1 061 100 7 22 22 50 1 0:1 100 7 22 Click Sapp 22 50 100 041 100 7 22 150 22
please solve fast 🙏🏼
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
please solve fast 🙏🏼
please solve fast 
QUESTION 4 What would be the output of the following code? ArrayList<Integer> list = new ArrayList<Integer>(); list.add(1); list.add(7): list.add(22) list add 100) System.out.print(list.get(i) +โ "); list.set(2,50); list.remove(1) for(int i-list.size(); i > list.size()/2; i--) System.out.print(list.get(i) + " "); a 22 7 100 1 22 50 1 061 100 7 22 22 50 1 0:1 100 7 22 Click Sapp 22 50 100 041 100 7 22 150 22
QUESTION 4 What would be the output of the following code? ArrayList<Integer> list = new ArrayList<Integer>(); list.add(1); list.add(7): list.add(22) list add 100) System.out.print(list.get(i) +โ "); list.set(2,50); list.remove(1) for(int i-list.size(); i > list.size()/2; i--) System.out.print(list.get(i) + " "); a 22 7 100 1 22 50 1 061 100 7 22 22 50 1 0:1 100 7 22 Click Sapp 22 50 100 041 100 7 22 150 22