Question: Consider the following code: ArrayList list=new ArrayList (); list.add(A); list.add(B); list.add(C); String result=; for (String str: list){ result = str + result; } System.out.println(result); What
Consider the following code:
ArrayList
list.add("A");
list.add("B");
list.add("C");
String result="";
for (String str: list){
result = str + result;
}
System.out.println(result);
What would print?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
