Question: Section A -Read the programs, and write the output. You may assume the programs are otherwise correct. (40 marks in total with 4 marks each)

Section A -Read the programs, and write the output. You may assume the programs are otherwise correct. (40 marks in total with 4 marks each) 1) 'g', 'm', '1'}; public class Exampleli { public static void main(String[] args) { char[] myArray - {'a', 'b', 'c', 'd', String str = ""; for (int i=myArray.length-1; i>e; i--) { if (i % 2 == 0) { str += myArray[i]; ) } System.out.println(str)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
