This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes I am Stuck Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "I am Stuck" Watch "I am Stuck" New topic
Author

I am Stuck

Ryan Perlman
Greenhorn

Joined: Oct 31, 2001
Posts: 23
I think I can write the method but how to pass the methods boolean value back to the textField that requires String.
I know with setText(Integer.toString(55)); we can pass an int to a string but where should I look to pass a boolean
Frustrated Ryan :confused
Kris Nelson
Ranch Hand

Joined: Nov 04, 2001
Posts: 35
The Boolean Wrapper class (Boolean with a capital 'B') has a toSTring() method that returns "true" or "false" as a String and can be created using as boolean value in its constructor.

------------------
WebNelly.com
Java/XML Web Development
Check it out!
http://www.webnelly.com


WebNelly.com<br />Java/XML Web Development<br />Check it out!<br /><a href="http://www.webnelly.com" target="_blank" rel="nofollow">http://www.webnelly.com</a>
Ryan Perlman
Greenhorn

Joined: Oct 31, 2001
Posts: 23
I found the Boolean Wrapper Class in the api early, could I throw a couple of more quarters at the jukebox for just a little more hint? Please
Ryan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I am Stuck
 
Similar Threads
another Question of java.io
Format Doubt.
Doubt on assertions question
passing java string array to javascript
Boolean wrapper class question (Was:SCJP)