Hi all!
What Fred told is right. Considering:
in the first,
You declared an array (typed
String). "An object is a
class instance or an
array. " So you won't find anything in the
java API because those "array" are not class instances. You'll find a definition of array in javase specification (the language itself, where all keywords are explained):
http://docs.oracle.com/javase/specs/jls/se7/html/jls-10.html#jls-10.7 like:
"The public final
field length, which contains the number of components of the array.
length may be positive or zero."
in the second
.length()
refers to the method of class String object described here :
https://docs.oracle.com/javase/7/docs/api/java/lang/String.html#length()
But as wordListOne is not
an object, it fails because it's a collection of object
s. You could code this to get the number of characters for the
third word of your list:
Cheers