File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Boolean Class Method? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Boolean Class Method?" Watch "Boolean Class Method?" New topic

Boolean Class Method?

Kalona Ark

Joined: Oct 31, 2007
Posts: 20
Can someone please explain or provide links so I can understand how to construct a boolean class method?
Bill Shirley
Ranch Hand

Joined: Nov 08, 2007
Posts: 457

this example is in Java EE 5.0,
the boolean is "auto boxed" into a Boolean by the compiler

Bill Shirley - bshirley -
if (Posts < 30) JavaRanchFAQ);
fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11720

I don't understand the question. do you want to make a Boolean (i.e. call it's constructor)?

Or are you trying to make a new method in the Boolean class? or are you trying to extend the Boolean class to make your own method?

I'd start with the api, although I don't know which version you are using.

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Kalona Ark

Joined: Oct 31, 2007
Posts: 20
Thanks for the info, Bill.


"Boolean class method which takes one character of a line as a parameter."

That is what my Instructor wanted, but I did not understand the concept of a boolean class method.
[ November 20, 2007: Message edited by: Kalona Ark ]
I agree. Here's the link:
subject: Boolean Class Method?