/**
* Exercise 2
* Define a class named as LinkedList with appropriate fields and constructors.
* Include a method called isEmpty() and write a Java application to test the method.
* @author MUHAMMAD AZRI BIN JASNI
* @version 10 OCTOBER 2012
*/
public class exercise2
{
public static void main(String [] args)
{
System.out.println("This JavaApp will test method isEmpty.\nCreating a new linkedList.");
LinkedList list = new LinkedList();
//System.out.println("data:"+list.head.data);
//System.out.println("link:"+list.head.link);
System.out.print("Checking... ");
if (list.isEmpty())
System.out.println("List is empty.");
}
}