CIT 591 Clarifications for Adventure Assignment
David Matuszek, Fall 2002

The following are explanations of things that some people seem to be confused about. There are no new requirements here; the intent is to clarify the existing requirements.





String Comparisons

If you have two Strings you want to compare, say, string1 and string2, you should say string1.equals(string2) rather than string1==string2. If one of the strings might possibly be null, use it as the parameter; for example, "key".equals(thing) is better than thing.equals("key"). This will avoid some problems which we will talk about in class when we get to the lecture on characters and strings.