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:
Related Book For
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis
Question Posted: