i m taking the user input like
but my problem is when user press "backspace"
for eg when user enter 2 its ok ,
but when user try to delete that 2 with backspace and if i print the empID then println prints a blank line , and if i check the length of that
String empID its 1 so i guess
if the length is 1 and there is nothing in the string that means the string has a blank space like this " ".
but when i check for the blank string like
how to solve this problem , and what according to you could be there in a string ?