I have this character creation program I'm working on. I'm using Eclipse and it says there are no problems, but it doesn't read a part of my code. What is going on and how do I fix it?
import java.util.Scanner;
public class Character
{
static Scanner scan = new Scanner(System.in);
public static void main(String[] args)
{
String play = "yes";
String play1;
String play2;
String play3;
while (play.equals("yes"))
{
System.out.println("Let's create a character!");
System.out.println("Select a type of headwear. (bald, hair, hat)");
play1 = scan.next();
System.out.println("Select a type of shirt. (no sleave, short sleave, long sleave)");
play2 = scan.next();
System.out.println("Select a type of pants. (short, medium, long)");
play3 = scan.next(); \\does not read this part
System.out.println("Your character:");
code followed by a HUGE nested if block.