rendered paste body// Zack Fitzsimmons
public class SinglyTestClass
{
public static void main()
{
SinglyLinkedList temp = new SinglyLinkedList();
System.out.println(temp);
test.add("a");
temp.add("b");
temp.add("c");
temp.add("d");
System.out.println(temp);
System.out.println(temp.indexOf("b"));
System.out.println(temp.get(3));
System.out.println(temp.size());
if(temp.contains("d"))
System.out.println("it contains d");
if(!temp.contains("e"))
System.out.println("contains e");
temp.remove("c");
System.out.println(temp);
temp.remove(3);
System.out.println(temp);
temp.set(3, "g");
System.out.println(temp);
temp.add(5, "r");
System.out.println(temp);
}
}