-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInventoryApp.java
More file actions
43 lines (40 loc) · 1.08 KB
/
InventoryApp.java
File metadata and controls
43 lines (40 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package org.example.MavenTest;
import java.util.Scanner;
import entities.AddProduct;
import entities.DeleteInventory;
import entities.UpdateInventory;
import entities.ViewAllInventory;
import entities.ViewInventory;
public class InventoryApp
{
public static void main(String[] args)
{
@SuppressWarnings("resource")
Scanner sc = new Scanner(System.in);
int ch=0;
while(ch != 6)
{
System.out.println("Enter the Choice");
System.out.println("1.Add Product\n2.View Product\n3.View All Product List\n4.Update Product List\n5.Remove Perticular Product");
ch = sc.nextInt();
switch (ch)
{
case 1:
AddProduct.addProductDetails();
break;
case 2:
ViewInventory.viewInventoryDetails();
break;
case 3:
ViewAllInventory.viewAllInventoryDetails();
break;
case 4:
UpdateInventory.updateInventoryDetails();
break;
default:
DeleteInventory.deleteInventoryDetails();
break;
}
}
}
}