Hi there all, im having problems trying to get a loop to jump out when it has to. Heres part of the program
if (age < 12)
outFile.println("No one " + age + " years of age can hire a DVD");
dvdType = inFile.next().charAt(0);
if (age > 12 && age <15)
outFile.println("Borrowers " + age + " years of age can hire only \"G\" DVDs ");
dvdType = inFile.next().charAt(0);
This is in a while loop. I want it to exit if the age is less than 12 and go onto the next line of the infile.
If someone can help that would be good.
Cheers