if(str){ , or if(!str){ can it work in java ?
Hello all
im kinda new to java I wander
in some scripting lang sometimes you can query if the variables is set or contains value that is different from "" (empty string 0 length)
by simply
doing
if(str){厖.}
or
if(!str){ ?.}
in java I notice you can't do it if your variable is not Boolean , or do I miss here something and there is way to do that somehow
can someone please make it more clear to me , tnx

