Skipped the first scanner and switched to the second scanner
I am using the Scanner methods nextInt() and nextLine() for reading input.
System.out.print("Product Name : ");
String productName = scan.nextLine();
System.out.print("Price : ");
int price = scan.nextInt();
But java Skipped the first scanner and switched to the second scanner
Product Name : Price :