August 17th, 2004 11:45 AM A Java Question Hello, I have a
newbie question here. How do I convert the char and String data
type to an integer in Java so that I can perform arithmetic
operation? August 17th, 2004 12:01 PM char crap = 'a'; int
othercrap = (int)crap; othercrap would have the ascii code value
of 'a' then. The above sentences are produced by the propaganda
and indoctrination of people manipulating my mind since 1987,
hence, I cannot be held responsible for this post\'s content
August 17th, 2004 02:36 PM If you want to decode them in
decimal, use the Integer.parseInt() method (IIRC) String mystr =
"42"; int theAnswer = Integer.parseInt(mystr); August 18th, 2004
10:05 PM I strongly recommend keeping a link on hand to the api
documentation on http://java.sun.com . A quick run through there
before coming here would probably save you time. "When I get a
little money I buy books; and if any is left I buy food and
clothes." - Erasmus "There is no programming language, no matter
how structured, that will