Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- System.out.println();
- for ( int i = 0; i < productName.length; i ++)
- {
- System.out.println("Enter product name: ");
- productName [i] = scan.nextLine();
- System.out.println("Enter product category (Tech/Grocery/Office): ");
- productCategory [i] = scan.nextLine();
- System.out.print("Enter product price: ");
- price [i] = scan.nextDouble();
- System.out.println();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement