Lab16 class declare an array of
names suitable for holding 5 names.
System.out.println(names.length); do?
names array.
s to your lab so we can read data from the user.
Scanner method nextLine() reads
a string from the keyboard. Use a for-loop to read five names from the
keyboard and put them in the names array.
1) Fred
2) George
3) Hermione
4) Harry
5) Dumbledore
String sentence = "How many characters are in this sentence?";
System.out.println(sentence.length());