Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. System.out.println();
  2. for ( int i = 0; i < productName.length; i ++)
  3. {
  4. System.out.println("Enter product name: ");
  5. productName [i] = scan.nextLine();
  6.  
  7. System.out.println("Enter product category (Tech/Grocery/Office): ");
  8. productCategory [i] = scan.nextLine();
  9.  
  10. System.out.print("Enter product price: ");
  11. price [i] = scan.nextDouble();
  12.  
  13. System.out.println();
  14.  
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement