🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Delphi Enumerated types equivalent in Java?

#14518
From: Ken Sprague
Date: Fri, 27 Aug 1999 00:00
20 lines
1212 bytes
Chrismo,

The Java language does not have enumerated types.  You can use static
final integers, or for type safety (and other features), you can
create a class.  JavaWorld has a good article, entitled "Create
Enumerated Constants in Java", which shows one way to go about this:

http://www.javaworld.com/jw-07-1997/jw-07-enumerated.html

Hope this helps.

Ken


Chrismo <chrismo@workmail.com> wrote in message
news:7q6ip2$rlf11@forums.borland.com...
> Is there an equivalent to enumerated types in Java, or just use
constants?
>
>
Technical Details
Message-ID: <7q7umr$t5q2@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7q6ip2$rlf11@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,d5f9beed748aa57d
X-Google-Attributes: gidf74b3,public
From: "Ken Sprague" <ksprague@email.msn.com>
Subject: Re: Delphi Enumerated types equivalent in Java?
Date: 1999/08/27
Message-ID: <7q7umr$t5q2@forums.borland.com>
X-Deja-AN: 518108700
Content-Transfer-Encoding: 7bit
References: <7q6ip2$rlf11@forums.borland.com>
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
X-Priority: 3
Content-Type: text/plain; charset="iso-8859-1"
Mime-Version: 1.0
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Newsgroups: borland.public.jbuilder.java.language