Hi I have many fields that I need to validate for the null and empty i.e ""
If I have to validate 5 strings then here is the code.
string.equals("") || string1.equals("") || string2.equals("") || string3.equals("") || string4.equals("")
||
string.equals(null) || string1.equals(null) || string2.equals(null) || string3.equals(null) || string4.equals(null)
then it looks odd. If there are about 10 strings then more ugly.
Please tell me the best practice to do it.