Chapter 8: Problem 15
8.15 a) Write a statement that declares a String array initialized with the following strings: 鈥淢ercury鈥, 鈥淰enus鈥, 鈥淓arth鈥, and 鈥淢ars鈥. 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鈥檚 charAt method discussed in Chapter 2.)