I am trying to write an if/else statement as I think that would be my best way. What I need it to do is determine if the name is a Short name, average length name, or a long name. Now with 13 being the average length that would mean I would need to code as below, but I cannot seem to make it work
IT WORKS NOW
System.out.println("Please Enter your first and last name");
String str = input.nextLine();
// here the code wil display the string's length and its first character
System.out.println("The number of characters in your name is " +
str.length());
if(str.length() == 13)
System.out.println("Your name is average length.");
else if (str.length() > 13)
System.out.println("Your name is long length.");
else if (str.length() < 13)
System.out.println("Your name is short length.");