🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Comparing chars

#16115
From: Tor Iver Wilhelmsen
Date: Fri, 26 Mar 1999 00:00
10 lines
735 bytes
benkers <benkers@benkers.com> writes:

> Is there a method for compare two chars, where the char 'a' and the char
> '�' is the same?

Look into java.text.Collator and related classes.

> (Result of   "a".compareTo("�") is -128 )

That only compares character numerical values.
Technical Details
Message-ID: <uzp50fw91.fsf@sds.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36FA850B.419DB478@benkers.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,df7c9326db7db3dd
X-Google-Attributes: gidf74b3,public
From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no>
Subject: Re: Comparing chars
Date: 1999/03/26
Message-ID: <uzp50fw91.fsf@sds.no>
X-Deja-AN: 459278413
Sender: towi@SDSA1761
References: <36FA850B.419DB478@benkers.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language