I am creating desktop application and I am facing a problem that I can't find a way to check if my is variable empty or not. In field user must enter a number. OK - if he enters number so how to check that he really entered it and did not left empty field? Should I try to convert my variable amziusCheck to String and then I could use .length(), am I right? Or there is another way?
IntStream amziusCheck = programuotojoAmzius.getText().chars();