System.out.print("Enter name:");
name=sc.nextLine();
System.out.print("Enter nric: ");
nric=sc.nextLine();
System.out.print("Enter age: ");
age=sc.nextInt();
System.out.print("Enter gender(male/female): ");
gender=sc.nextLine();
System.out.print("Enter weight:");
weight=sc.nextInt();
System.out.print("Enter height: ");
height=sc.nextDouble();
Well, every time after I enter age, I cannot enter gender. I would really appreciate it if you could help me, thanks.