package mylinkedlist;
public class MyMain {
/**
* @param args
*/
public static void main(String[] args) {
LinkedList<Integer> myLL = new LinkedList<Integer>();
System.out.println(myLL.isEmpty());
if (! myLL.isEmpty())
System.out.println(myLL.front());
myLL.addAtBeginning(5);
myLL.addAtBeginning(6);
myLL.addAtBeginning(15);
myLL.printAllItems();
System.out.println(myLL.front());
}
}
Thursday, July 15, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment