Article View: borland.public.jbuilder.java.language
Article #19654Re: converting from Text to Double or Int
From: Carl Hewitt
Date: Fri, 09 Jan 1998 00:00
Date: Fri, 09 Jan 1998 00:00
20 lines
1007 bytes
1007 bytes
Try Double.valueOf(String s); Integer.valueOf(String s); Carl Allan Bressler wrote in message <34B67EE3.51CEE19@earthlink.net>... >Hi, > >I'm trying to convert text entered in a TextField to an integer so that >I can use that value to look up an index in an array. I also need to >convert some other text in a TextField to a Double to do some >calculations with it. I can't find the command to do this (if there is >one). I'm new at this so please be as specific as possible. > >Thanks in advance. > >Allan >
Technical Details
Message-ID:
<6960od$7bv18@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<34B67EE3.51CEE19@earthlink.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,95acace74d11f1d5 X-Google-Attributes: gidf74b3,public From: "Carl Hewitt" <carl@oop.com> Subject: Re: converting from Text to Double or Int Date: 1998/01/09 Message-ID: <6960od$7bv18@forums.borland.com> X-Deja-AN: 314420049 References: <34B67EE3.51CEE19@earthlink.net> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Organization: None Newsgroups: borland.public.jbuilder.java.language