Checking empty textEdit
问题 I'm trying to program a simple register application, the user have to fill some fields, where some of them are obligatory. So, I need to check if the user write the info there. I'm doing this: for(RequireFields r : RequireFields.values()){ if(boolValue()){ switch (r.getField()) { case "name": System.out.println("Name"); break; case "surname": System.out.println("Surname"); break; case "pass": System.out.println("Pass"); break; case "email": System.out.println("Email"); break; case "street":