Okay, here is my problem. This is my code that I'm working on. On the first loop, it is fine. But when it goes to next loop the cursor on Applicant name won't come out. It skips to study level. Why this happening? Is something wrong with my code?
while (totalScholarship != 0) {
System.out.println("Applicant Name: ");
s.setsName(input.nextLine());
System.out.println("Study Level: ");
System.out.println("1-Pre Dip, 2-Dip 3-Degree");
s.setiStudyLevel (input.nextInt());
System.out.println("Personallity Score: ");
s.setiPersonalityScore(input.nextInt());
System.out.println("Parent Income: ");
s.setdParentIncome(input.nextDouble());
int iPersonalityScore = s.getiPersonalityScore();
double dParentIncome = s.getdParentIncome();
if (iPersonalityScore < 350) {
if (dParentIncome >= 3000) {
System.out.println("NOT ELIGIBLE!");
} else {
System.out.println("CONGRATULATIONS!");
bEligible = true;
}
} else {
System.out.println("CONGRATULATIONS!");
}
System.out.println("");
System.out.println(s.toString());
}