aspose file tools*
The moose likes Beginning Java and the fly likes Boolean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Boolean" Watch "Boolean" New topic
Author

Boolean

Bart Wilson
Greenhorn

Joined: Aug 01, 2001
Posts: 17
If you have a return type Boolean what does this return, does it returns true/false like the primimtive boolean?
public java.lang.Boolean getIndicator()
{
return mIndicator;
}
William Barnes
Ranch Hand

Joined: Mar 16, 2001
Posts: 984

It returns a Boolean class. The Boolean class is not the same as the boolean primate. There is a method on the Boolean class which returns true/false.


Please ignore post, I have no idea what I am talking about.
Bart Wilson
Greenhorn

Joined: Aug 01, 2001
Posts: 17
Figured it out the method is booleanValue()
Originally posted by christopher foran:
It returns a Boolean class. The Boolean class is not the same as the boolean primate. There is a method on the Boolean class which returns true/false.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Boolean
 
Similar Threads
underlying value of boolean "false", "true"
general query
Another IO Question
javax.el.PropertyNotFoundException
Boolean.valueOf(boolean) vs Boolean.valueOf(String)