🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15038

StrToInt function?

#15038
From: Dave Hatzenbuehler
Date: Tue, 13 Jul 1999 00:00
12 lines
882 bytes
I am looking for a way to convert a string to an integer value.  I have
the following line of code:

String cStr = 'abc';
int nNum = Integer.valueOf( cStr ).intValue.

I keep getting "intValue not found in java.lang.Integer."  I have import
java.lang.Integer and I still get this error.  Can someone please point
me in the right directin.

Thanks,
Dave Hatz
Technical Details
Message-ID: <378B674D.8818D1F6@insynclh.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,ecbec2f1a10fd049,start
X-Google-Attributes: gidf74b3,public
From: Dave Hatzenbuehler <daveh@insynclh.com>
Subject: StrToInt function?
Date: 1999/07/13
Message-ID: <378B674D.8818D1F6@insynclh.com>
X-Deja-AN: 500563281
Content-Transfer-Encoding: 7bit
Organization: Another Netscape Collabra Server User
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language