Hi ,I am learning Java ,and I have problem ,when I call this method form main and chose 1 it is printing enter name and enter priority without letting me enter the data
how can I fixed that
Thanks
public void makeChoise(){
switch(display())
{
case 1:System.out.print("Enter First and Last Name: ");
setName(input.nextLine());
System.out.print("Enter Priority: ");
setPriority(input.nextInt());
break;
case 2:System.out.println("Display priority");
break;
case 3:System.out.println("display by name");
break;
case 4:System.out.println("exit");
break;
default : System.out.println("wrong choise");
break;
}
}