// Jim Herrero public class SinglyTestClass { public static void main() { SinglyLinkedList test = new SinglyLinkedList(); System.out.println(test); test.add("one"); test.add("two"); test.add("three"); test.add("four"); System.out.println(test); System.out.println(test.indexOf("two")); System.out.println(test.get(2)); System.out.println(test.size()); if(test.contains("four")) System.out.println("Everything is OK so far!"); if(!test.contains("five")) // not working System.out.println("Everything is OK so far!"); test.remove("three"); System.out.println(test); test.remove(1); System.out.println(test); test.set(1, "three"); // not working System.out.println(test); test.add(1, "two"); // not working System.out.println(test); } }