**the following program stores values in a 2-D array a[][] and a array "a[]" using a for loop for 5 inputs.while running it takes input only once and skips the input for the following runs and takes no input from the user but it prints the statement **
for(int i=0;i<5;i++)
{
System.out.println("Enter the name of Salesman = ");
name[i]=obj.nextLine();
System.out.println("Enter the product quantity for " +name[i]);
for(int j=0;j<5;j++)
{
a[i][j]=obj.nextInt();
}
}