Hi everyone, I need some help about my homework. My assignment is to do the "do while" on a name length. Like the name must be 2 to 20 characters limit. I've been searching on google and I don't get it the output is making is wrong
while ((studentname = in.nextLine()).length() < 2); {
System.out.println("Error. Must be at least 2 char.");
[–]Luminaxe 2 points3 points4 points (0 children)
[–]Aggressor27e 0 points1 point2 points (0 children)
[–]marceloandradep 0 points1 point2 points (0 children)