wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes why does this print true? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "why does this print true?" Watch "why does this print true?" New topic
Author

why does this print true?

Ankur kothari
Ranch Hand

Joined: Sep 06, 2009
Posts: 531


Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

hint=>> http://java.sun.com/j2se/1.5.0/docs/api/java/util/Formatter.html#syntax

If the argument arg is null, then the result is "false". If arg is a boolean or Boolean, then the result is the string returned by String.valueOf(). Otherwise, the result is "true".


SCJP6 96% | SCWCD5 81% | SCDJWS5 79%
Ankur kothari
Ranch Hand

Joined: Sep 06, 2009
Posts: 531
thanks man
Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

you are most welcome ;)
 
jQuery in Action, 2nd edition
 
subject: why does this print true?