[2341] in java-interest
Re: more casting (sort of)
daemon@ATHENA.MIT.EDU (satoh-HAL-osamu)
Fri Sep 29 16:22:38 1995
From: pfu.fujitsu.co.jp!satoo@fujitsuI.fujitsu.com (satoh-HAL-osamu)
To: java-interest@java.Eng.Sun.COM
In-Reply-To: Your message of "Thu, 28 Sep 1995 13:45:25 PST."
<9509282209.AA14869@gladys.Eng.Sun.COM>
Date: Sat, 30 Sep 1995 02:27:47 +0900
Hi Laura,
> Integer to string isn't so bad:
>
> String str = String.valueOf(555);
>
> But I can't figure out how to convert a string back to an int. or a
> char. or a boolean.
You can do like:
int i = Integer.parseInt("1234");
-----
satoo
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com