Look at the following array definition: String[] colors = {Blue,Green,Purple}; a. What will be returned by colors[2].length()
Fantastic news! We've Found the answer you've been seeking!
Question:
Look at the following array definition:
String[] colors = {"Blue","Green","Purple"};
a. What will be returned by colors[2].length() when you print it to screen?
b. What will be returned by colors[1].charAt(0)when you print it to screen
c. What will be the output of System.out.println(colors[0].equals(colors[1]));
Related Book For
Horngrens Financial and Managerial Accounting
ISBN: 978-0133866292
5th edition
Authors: Tracie L. Nobles, Brenda L. Mattison, Ella Mae Matsumura
Posted Date: