document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1.  
  2. public class Item {
  3.  
  4.     public String name;
  5.     public int itemNumber;
  6.     public int qty;
  7.     public double price;
  8.     public Item next;
  9.  
  10.     public Item(String name, int itemNumber, int qty, double price) {
  11.  
  12.         this.name = name;//parameter dan variabel sama, solved by this
  13.         this.itemNumber = itemNumber;
  14.         this.qty = qty;
  15.         this.price = price;
  16.     }
  17.  
  18.     public void displayItem() {
  19.  
  20.         System.out.println(name + " " + itemNumber + " " + qty + " " + price);
  21.         System.out.println();
  22.     }
  23.  
  24. }
');