Article View: borland.public.jbuilder.java.language
Article #17807Re: A simple question about arrays
From: Steve Schafer (TeamB)
Date: Fri, 25 Sep 1998 00:00
Date: Fri, 25 Sep 1998 00:00
21 lines
1246 bytes
1246 bytes
On Thu, 24 Sep 1998 20:52:50 -0500, "C Javier Castro Pe�a" <jcaspen@ittc.ukans.edu> wrote: >Which method should I use to get the size of the array? > > >String [] DataLoaded1 = >PhoenixClient.Enumeration.getEnum(PhoenixClient.Enumeration.COMMON_DEPT); > > >getEnum is a function that returns varioys strings. I need later to do a >for from 1 to the size of the array, but I couldn't find which >method to use. Are you saying that getEnum returns an array of strings? If so, DataLoaded1.length tells you the size of the array. (The reason I ask whether or not getEnum returns an array is that an Enumeration is something completely different from an array.) -Steve
Technical Details
Message-ID:
<3623f8e7.107960028@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<360AF771.8315170B@ittc.ukans.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,677e77167b9e6adc X-Google-Attributes: gidf74b3,public From: pandeng@telepath.com (Steve Schafer (TeamB)) Subject: Re: A simple question about arrays Date: 1998/09/25 Message-ID: <3623f8e7.107960028@forums.borland.com> X-Deja-AN: 394586578 Content-Transfer-Encoding: 8bit References: <360AF771.8315170B@ittc.ukans.edu> Content-Type: text/plain; charset=ISO-8859-1 Organization: TeamB Mime-Version: 1.0 Reply-To: pandeng@telepath.com Newsgroups: borland.public.jbuilder.java.language