Skip to main content
deleted 3 characters in body
Source Link

The best way to compare strings is use stringInstance.equals("what to compare"), so your code will be:

hei.equals("") 

Also you can use length of string:

hei.getLengthlength() > 0 

The best way to compare strings is use stringInstance.equals("what to compare"), so your code will be:

hei.equals("") 

Also you can use length of string:

hei.getLength() > 0 

The best way to compare strings is use stringInstance.equals("what to compare"), so your code will be:

hei.equals("") 

Also you can use length of string:

hei.length() > 0 
Source Link

The best way to compare strings is use stringInstance.equals("what to compare"), so your code will be:

hei.equals("") 

Also you can use length of string:

hei.getLength() > 0