🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to deal with numbers as strings?

#16284
From: Steve Horsley
Date: Tue, 16 Mar 1999 00:00
10 lines
807 bytes
MTDINC wrote:
> 
> 6.    if(partNumber != PNString){


This checks to see if they refer to the same Object (which they do not).
To do a string comparison, use:
    if(!partNumber.equals(PNString)) {
         system.out.println("Not Equal!");
    }
Technical Details
Message-ID: <36EE23EF.7FFB@cwcom.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36EDC210.93F64477@earthlink.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,e43a7f1f5e26c52b
X-Google-Attributes: gidf74b3,public
From: Steve Horsley <steve.horsley@cwcom.co.uk>
Subject: Re: How to deal with numbers as strings?
Date: 1999/03/16
Message-ID: <36EE23EF.7FFB@cwcom.co.uk>
X-Deja-AN: 455562662
Content-Transfer-Encoding: 7bit
References: <36EDC210.93F64477@earthlink.net>
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language