Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Mohammad Alkhaled
Added: Jan 29, 2019 1:39 PM
Modified: Jan 29, 2019 1:42 PM
Views: 25
  1. khaleeeeeeeeeeeeeeeeeeeeeed
  2.  
  3. /**
  4.  *
  5.  * @author Muhammad WANNOUS
  6.  */
  7. public class SimpleInv {
  8.  
  9.     public static void main(String[] args) throws Exception {
  10.         Item item1, item2;
  11.         item1 = new Item("1", "IkEA", "2018/09", "2018/10");
  12.         item2 = new Item("2", "IKEA", "2018//09", "2018/10");
  13.         System.out.println(item1.toString());
  14.         System.out.println(item2.toString());
  15.        
  16.         Item fItem1;
  17.         FurnitureItem fItem2;
  18.         fItem1 = new FurnitureItem("3", "IKEA", "2018/09", "2018/10",
  19.                 "Desk", new String[] {"Wood", "Iron", "Plastic"},
  20.                 new String[]{"Brown", "Silver", "Black"});
  21.         fItem2 = new FurnitureItem("4", "IKEA", "2018/09", "2018/10",
  22.                 "Chair", new String[] {"Wood", "Iron", "Plastic"},
  23.                 new String[]{"Brown", "Silver", "Black"});
  24.         System.out.println(fItem1.toString());
  25.         System.out.println(fItem2.toString());
  26.         System.out.println(Item.getTotalNumberOfItems());
  27.         System.out.println(FurnitureItem.getTotalNumberOfFurnitureItems());
  28.     }
  29. }