Question: Java: Which of the following code segments will give the below output? A3 C3 B3 A2 C2 B2 A1 C1 B1 public static void main(String[]
Java:
Which of the following code segments will give the below output?
A3 C3 B3 A2 C2 B2 A1 C1 B1

public static void main(String[] args) { String !! letters = {"A","C", "B"}; String ll numbers = {"1","2'","3"}; for(String n : numbers) { for(int i=letters.length-1; i>=0; i--) { System.out.print(letters[i]+n); } } public static void main(String[] args) { String !! letters = {"A","B","C"}; String i numbers = {"1","2","3"); for(int i=0; i=0; i--){ System.out.println(letters (i83)+numbers [j]); > > } public static void main(String[] args) { String !! letters = {"A", "B","C"}; String numbers = {"3,"2","1"}; for(String n : numbers) { for(int i=0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
