theremin
May 3, 2006
Quite a lot to do with this one.. so Far I have a class that looks like public class Person { private String firstName; private String lastName; public Person() { firstName = ""...
iwz
May 3, 2006
Well, here's something to get you started: "So how would I set the last name only" q[Person person = new Person(); person.setLastName("Smith");]q or q[Person person = new Person(null, "Smi...
iwz
May 3, 2006
here's a bonus equals method you can add to the Person class: q[public boolean equals( Object o ) { if ( this == o ) return true; if ( o == null || getClass() != o.getClas...
Oh, we didn't talk about a clone() method yet. Thanks for all the help as usual.