When accessing a variable in a class, you often have to use a method to
get it's value, rather than accessing it directly.

String foo = new String ("bar");
int bob = foo.length;
the second line should be
int bob = foo.length();

Remember to put any parameters that are needed into the brackets.

NOTE: The Java section is mostly in maintenence mode. I don't have time to work on it right now. Errors will be corrected if pointed out, but they are not actively being searched for. Newer site features, like alternate stylesheets, may cause problems with these pages.