1. Write Java statements to display the contents of the array you created in the previous exercise. 2. What is the result of executing the following code? char[] letter = {'a', 'b', 'c', 'd', 'e',...


1. Write Java statements to display the contents of the array you created in the previous exercise.


2. What is the result of executing the following code?


char[] letter = {'a', 'b', 'c', 'd', 'e', 'f'};


for (int index = 1; index <>


System.out.print(letter[index] + ", ");


3. What is the result of executing the following code?


int[] sampleArray = new int[10];


for (int index = 1; index <=>


{


sampleArray[index] = 3 * index;


System.out.print(sampleArray[index] + ", ");


} // end for



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here