Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes Boolean Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply 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: 965

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
general query
underlying value of boolean "false", "true"
Another IO Question
javax.el.PropertyNotFoundException
Boolean.valueOf(boolean) vs Boolean.valueOf(String)