import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner in =new Scanner(System.in);
String [] products=new String [5];
System.out.println("Capture & new Soduct");
System.out.println("Enter the product code: ");
String p_code=in.next();
products[0]=p_code;
System.out.println("Enter the product nass: ");
String p_nass=in.next();
products[1]=p_nass;
System.out.println("Select product category: \\n1. Laptop \n2. Caming Const");
String p_category=in.next();
products[2]=p_category;
System.out.println("Enter the product warranty: ");
String p_warranty=in.next();
products[3]=p_warranty;
System.out.println("Enter the product price: ");
String p_price=in.next();
products[4]=p_price;
System.out.println("Product code: "+p_code);
System.out.println("Product nass: "+p_nass);
System.out.println("Product category: "+p_category);
System.out.println("Product warranty: "+p_warranty);
System.out.println("Product price: "+p_price);
}
}
Comments
Leave a comment