• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question about how to convert a boolean to a String

 
Sean Gildea
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to convert a boolean to a String so I can input it into a String array

Here is what I am trying but it is erroring out.



I also tried this but it did not work.


Just FYI, below is how I implemented the get method.

 
Joyce Lee
Ranch Hand
Posts: 1392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sean,

I want to convert a boolean to a String so I can input it into a String array



Joyce
[ October 19, 2004: Message edited by: Joyce Lee ]
 
Andrew Eccleston
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sean,

Or there always:



andrew
[ October 19, 2004: Message edited by: Andrew Eccleston ]
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more way:
 
Jeff Bosch
Ranch Hand
Posts: 805
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And for those old C Dogs out there, the ol' if-then statement:



Not as elegent, perhaps, but valid! (I'm guilty of being one of those old C Dogs myself!)
 
Tony Morris
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sean, I'm curious.
Given the relatively trivial nature of your problem, I find it difficult to comprehend how anyone who has passed the SCJP 1.4 exam could possibly be so uninformed as to not be able to solve it themselves.

I apologise for any abruptness but please answer the following:
- Did you really pass the SCJP 1.4 exam?
- If so, how did you pass the SCJP 1.4 exam? Did you merely memorise the objectives, despite having little (no?) knowledge of how to apply them?
 
Jeff Bosch
Ranch Hand
Posts: 805
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Interesting question. When visiting the beginner forum, I don't even look at the originator's credentials. Maybe I need to change that philosophy...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic