Paste the following code over the code that RealJ automatically generates:
public class ApJava135
{
public static void main(String args[])
{
SimpleList theList = new SimpleList();
theList.addFront(1);
theList.addFront(2);
theList.addFront(3);
theList.display();
theList.remove(5);
theList.display();
theList.remove(2);
theList.display();
theList.remove(1);
theList.display();
theList.remove(3);
theList.display();
}
}
class SimpleList
{
private NumberNode head;
public SimpleList()
{
}
public void addFront(int nNum)
{
}
public void display()
{
System.out.println("Displaying the nodes");
}
public void displayNodes(NumberNode node)
{
}
public void remove(int nNum)
{
}
}
class NumberNode
{
public NumberNode(int nNum, NumberNode next)
{
}
public NumberNode getNext(){. . . .}
public void setNext(NumberNode next){. . . .}
public int getNum(){. . .}
private int myNum;
private NumberNode myNext;
}
/* Sample Output
Displaying the nodes
3
2
1
Displaying the nodes
3
2
1
Displaying the nodes
3
1
Displaying the nodes
3
Displaying the nodes
Exit code: 0
No Errors*/