0

html

in html form..there is a textfield.So if the client does not enter any value. now i m checking if then string.length()==0 then do something..but it is not working...why? and what is the solution?

28th Mar 2017, 7:10 PM
Somnath Ghosh
Somnath Ghosh - avatar
1 Odpowiedź
+ 3
check if the string is null and check if it is an empty string yourString.equals("")
28th Mar 2017, 7:49 PM
seamiki
seamiki - avatar