Writing an equals() method for linked list object
问题 I'm having trouble with an equals(Object other) method within a class I'm building called LString . The class contains an object called LString that builds strings out of linked lists, and a few other methods. I'm working on two methods, compareTo() and equals() . The class is tested by running another file, called LStringTest , which outputs this error message: Running compareTo and equals tests (18 tests) Starting tests: .E.........E...E.E Time: 0.426 There were 4 failures: 1)