a) Write a statement that declares a String array initialized with the following strings: “Mercury”, “Venus”, “Earth”, and “Mars”.
b) Write a loop that displays the contents of each element in the array you declared in A.
c) Write a loop that displays the first character of the strings stored in each element of the array you declared in A. ( Hint : Use the String class’s charAt method discussed in Chapter 2 .)
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.