a) Write a statement that declares a String array initialized with the following strings: Mercury, Venus, Earth,

Question:

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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: