{
int serialNo;
String brand;
int year;
double price;
public COMPUTER(){}
ListNode(Object o)
{
this(o, null);
}
Object getObject()
{
return data;
}
ListNode getNext()
{
return next;
}
}
public LIST()
{
firstNode = lastNode = null;
}
import javax.swing.*;
import java.util.*;
import java.lang.*;
while (nChoice != 0)
{
if(nChoice == 1) //enter data
{
String bilData = JOptionPane.showInputDialog("How many data? ");
int bil = Integer.parseInt(bilData);