QUOTE(nick2price @ 15 Sep, 2008 - 02:46 PM)

If you mean by help, do it for me, then the answer is no. You have to attempt the code yourself and people on here will guide you along, but you need to make the effort.
Start of with a) Input 10 invoices into a linked list. (4 marks)
Create a linked List
input invoice, which i cant see the method for unless you have to create it. If the input is just a single item, just use a scanner or inputDialog to ask the user to enter the invoice amount, and make it loop 10 times.
On every loop, add the input to your list. If you search the internet, you will see many examples of how linkedList work. Try somthing then post back.
here what i got..
import javax.swing.JOptionPane;
public class InvoiceApp {
public static void main( String args[] )
{
LinkedList objList = new LinkedList(); // create the List container
// Create objects to store into the List
String num = JOptionPane.showInputDialog("Please enter number of Invoice");
int numInv = Integer.parseInt(num);
for (int i=0; i < numInv; i++)
{
String aorderID = JOptionPane.showInputDialog("Order Id : ");
String acustName = JOptionPane.showInputDialog("Customer Name :");
String aprodName = JOptionPane.showInputDialog("Product name :");
String aprodQuantity = JOptionPane.showInputDialog("Product quantity :");
String aunitPrice = JOptionPane.showInputDialog("Unit price : ");
int orderID = Integer.parseInt(aorderID);
int prodQuantity = Integer.parseInt(aprodQuantity);
double unitPrice = Double.parseDouble (aunitPrice);
Invoice Inv = new Invoice (orderID, acustName, aprodName, prodQuantity, unitPrice);
objList.insertFirst(Inv);
}
// display the contents of the linked list
objList.print();
Invoice removedNode;
removedNode = (Invoice)objList.removeFirst();
System.out.println("\n Removed node :" + removedNode.toString());
objList.print();
}
}