if ( x == "" )If not, you must use:
if ( x == null || x.length() == 0 )One of the most common sources of error in Java programs comes from confusing the three different flavours of void strings: blank, empty and null.
![]() |
and suggestions to improve this page to Roedy Green : | ||
| Canadian Mind Products | |||
| mindprod.com IP:[65.110.21.43] | |||
| Your face IP:[38.103.63.18] | ![]() | ||
| You are visitor number 9,964. | |||
| You can get a fresh copy of this page from: | or possibly from your local J: drive (Java virtual drive/Mindprod website mirror) | ||
| http://mindprod.com/jgloss/empty.html | J:\mindprod\jgloss\empty.html | ||