Okay, my program is a side project for my JAVA class in school. It is very basic compared to what it will become. It 100% error free so need to worry about fixing anything.

What I am trying to do is make a program to choose traits for a child. I won't go into big details, I will only tell you the neccessaries. If you require any extra information, let me know. The do...while loop works fine, if you enter the correct letter/word(s), it saves that value and moves on. But, if you type in the wrong letter/word(s) it allows you to type it in again. But it only works for the first trait of each section. Try it out for yourselves with different letters and such, and different "mis-types" and let me know how to fix this.


Code:
/*
Program: Choose a child
Programmer:Brandon Prazmowski
*/

import java.util.*;

public class secret{
	public static void main(String args[]){
	
		int iError=0,
			 iChar1;
		String cChar1, cTrait1, cTrait2, cTrait3, cTrait4, cTrait5, cTrait6, cTrait7, cTrait8, cTrait9, cTrait10,
				  cTrait11, cTrait12, cTrait13, cTrait14, cTrait15;
				  
		Scanner input = new Scanner (System.in);
		
		System.out.println("\n ============================================="
									+"\n Welcome to the Child choosing program!"
									+"\n ============================================="
									+"\n "
									+"\n Here are some characteristics you can choose from. There will be FIVE CATAGORIES containing 10 traits each. The number/letter next to each trait will be the number/letter you enter for each section to determine what kind of child you will have..."
									+"\n Enter the number 1 to continue...");
		iChar1 = input.nextInt ();
		
		if (iChar1==1){
			System.out.println("Okay, here we go...");
			}
			else {
			System.out.println("Okay, close the program then...");
			}
		
		System.out.println("=============================================");
								 +"SECTION 1 ----- FACIAL FEATURES:Eye Color");
								 +"=============================================");
								 +"b - blue.........g - green");
								 +"r - red..........o - brown");
								 +"h - hazel........l - black");
								 +"i - lightblue....d - darkgreen");
								 +"e - lightgreen...u - darkblue");
		
		do {
			cChar1 = input.next();
		
		
		if (cChar1.equals("b")){
			System.out.println("You have chosen BLUE EYES.");
			iError=0;
			cTrait1="blue eyes";
			}
			else if (cChar1.equals("g")&&(iError==0)){
				System.out.println("You have chosen GREEN EYES.");
				iError=0;
				cTrait1="green eyes";
				}
			else if (cChar1.equals("r")&&(iError==0)){
				System.out.println("You have chosen RED EYES.");
				iError=0;
				cTrait1="red eyes";
				}
			else if (cChar1.equals("o")&&(iError==0)){
				System.out.println("You have chosen BROWN EYES.");
				iError=0;
				cTrait1="brown eyes";
				}
			else if (cChar1.equals("h")&&(iError==0)){
				System.out.println("You have chosen HAZEL EYES.");
				iError=0;
				cTrait1="hazel eyes";
				}
			else if (cChar1.equals("l")&&(iError==0)){
				System.out.println("You have chosen BLACK EYES.");
				iError=0;
				cTrait1="black eyes";
				}	
			else if (cChar1.equals("i")&&(iError==0)){
				System.out.println("You have chosen LIGHTBLUE EYES.");
				iError=0;
				cTrait1="lightblue eyes";
				}	
			else if (cChar1.equals("d")&&(iError==0)){
				System.out.println("You have chosen DARKGREEN EYES.");
				iError=0;
				cTrait1="darkgreen eyes";
				}	
			else if (cChar1.equals("e")&&(iError==0)){
				System.out.println("You have chosen LIGHTGREEN EYES.");
				iError=0;
				cTrait1="lightgreen eyes";
				}	
			else if (cChar1.equals("u")&&(iError==0)){
				System.out.println("You have chosen DARKBLUE EYES.");
				iError=0;
				cTrait1="darkblue eyes";
				}
				
			else {
				iError=1;
				System.out.println("Invalid input. Please re-enter the desired letter.");
				
				}
			} while (iError !=0 && cChar1 != "g" && (cChar1 != "r") && (cChar1 != "o") && (cChar1 != "h") && (cChar1 != "l") && (cChar1 != "i") && (cChar1 != "d") && (cChar1 != "d") && (cChar1 != "e") && (cChar1 != "u"));
		
		System.out.println("============================================="
								 +"HAIR COLOR     type any of the words that are listed..."
								 +"============================================="
								 +"dirty_blonde, light_blonde, strawberry_red, medium_red, black, light_brunette, medium_brunette, dark_brunette, strawberry_blonde, abstract.");

		do {			
			cChar1 = input.next();
		
		
		if (cChar1.equals("dirty_blonde")){
			System.out.println("You have chosen " + cChar1);
			iError=0;
			cTrait2="dirty blonde";
			}
			else if (cChar1.equals("light_blonde")&&(iError==0)){
				System.out.println("You have chosen " + cChar1);
				iError=0;
				cTrait2="light blonde";
				}
			else if (cChar1.equals("strawberry_red")&&(iError==0)){
				System.out.println("You have chosen " + cChar1);
				iError=0;
				cTrait2="strawberry red";
				}
			else if (cChar1.equals("medium_red")&&(iError==0)){
				System.out.println("You have chosen " + cChar1);
				iError=0;
				cTrait2="medium red";
				}
			else if (cChar1.equals("black")&&(iError==0)){
				System.out.println("You have chosen " + cChar1);
				iError=0;
				cTrait2="black";
				}
			else if (cChar1.equals("light_brunette")&&(iError==0)){
				System.out.println("You have chosen " + cChar1);
				iError=0;
				cTrait2="light brunette";
				}	
			else if (cChar1.equals("medium_brunette")&&(iError==0)){
				System.out.println("You have chosen " + cChar1);
				iError=0;
				cTrait2="medium brunette";
				}	
			else if (cChar1.equals("dark_brunette")&&(iError==0)){
				System.out.println("You have chosen " + cChar1);
				iError=0;
				cTrait2="dark brunette";
				}	
			else if (cChar1.equals("strawberry_blonde")&&(iError==0)){
				System.out.println("You have chosen " + cChar1);
				iError=0;
				cTrait2="strawberry blonde";
				}	
			else if (cChar1.equals("abstract")&&(iError==0)){
				System.out.println("You have chosen " + cChar1);
				iError=0;
				cTrait2="abstract";
				}
				
			else {
				iError=1;
				System.out.println("Invalid input. Please re-enter the desired trait.");
				
				}
			} while (iError !=0 && cChar1 != "dirty blonde" && (cChar1 != "strawberry red") && (cChar1 != "medium red") && (cChar1 != "black") && (cChar1 != "light blonde") && (cChar1 != "light brunette") && (cChar1 != "medium brunette") && (cChar1 != "dark brunette") && (cChar1 != "abstract") && (cChar1 != "strawberry blonde"));
		
		
	}
}