for (int i=0; i<arrProduct.length; i++) {
System.out.println("Enter product code: ");
proCode = sc.nextLine();
System.out.println("Enter product quantity: ");
quantity = sc.nextInt();
}
I inserted the product code for the first element of the array, and then for the 2nd element it wont let me insert any
output:
Enter product code:
SAW2222
Enter product quantity:
3
Enter product code:
Enter product quantity:
4