IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Some code here.
Beware - I'm not a Java coder.

Reading through some of [link|http://java.sun.com/products/jdk/1.1/docs/api/java.lang.String.html|Sun's docs] on String, it seems that strings are "immutable" so you have to do the conversion another way (as I understand the writeup). StringBuffer seems to have some of the functionality you'd expect, but doesn't list any conversions.

[link|http://gcc.gnu.org/ml/java-patches/2001-q2/msg00260.html|Here] some patches which talk about ints to strings and strings to ints. Maybe that'll help.

Good luck.

Cheers,
Scott.
New I don't believe it.
All I need to do is get a number from a TextField.getText() function - and stick it in an int variable. Please tell me there's a simpler way than rewriting the compiler... Which is what that post seems to be saying.

Yeah, I've been through Sun's Javadoc, and I haven't seen anything simpler. :(
"He who fights with monsters might take care lest he thereby become a monster. And if you gaze for long into an abyss, the abyss gazes also into you." - Friedrich Nietzsche
     String conversion to int in Java? - (inthane-chan) - (8)
         Some code here. - (Another Scott) - (1)
             I don't believe it. - (inthane-chan)
         Look in the Integer class? - (ChrisR) - (1)
             Thanks. - (inthane-chan)
         Another example. - (Another Scott)
         Easy enough - (wharris2) - (2)
             A few points about this - (bluke) - (1)
                 Actually - (tuberculosis)

Too bad dark languages rarely survive...
38 ms