String -> boolean

String -> boolean - Java - Programmation

Marsh Posté le 20-05-2004 à 20:55:33    

Y'a t'il un moyen plus simple de convertie une chaine en booleen que (Integer.parseInt(string)==0)?false:true ?

Reply

Marsh Posté le 20-05-2004 à 20:55:33   

Reply

Marsh Posté le 20-05-2004 à 21:19:02    

Boolean.valueOf() [:halm]
La javadoc, c'est bien [:kiki]


Message édité par Taiche le 20-05-2004 à 21:19:24

---------------
Everyone thinks of changing the world, but no one thinks of changing himself  |  It is the peculiar quality of a fool to perceive the faults of others and to forget his own  |  Early clumsiness is not a verdict, it’s an essential ingredient.
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed