Article View: borland.public.jbuilder.java.language
Article #17805Re: A simple question about arrays
From: C Javier Castro Pe�a
Date: Thu, 24 Sep 1998 00:00
Date: Thu, 24 Sep 1998 00:00
35 lines
1640 bytes
1640 bytes
> > >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. Yes, I am not using the Enumeration class, I created an Enumeration class that does something different (looks for some data on a database). I forgot that an Enumeration already existed. I used what you tell me, but I get the following compiler error: This is are my test sentences: String[] DataLoaded1 = PhoenixClient.Enumeration.getEnum(PhoenixClient.Enumeration.COMMON_DEPT); int a = DataLoaded1.lenght; Error(367): method lenght() not found in class jstring1Array I can't find the problem. Thanks, javier
Technical Details
Message-ID:
<360AFCC7.B527D148@ittc.ukans.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<360AF771.8315170B@ittc.ukans.edu> <3623f8e7.107960028@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,677e77167b9e6adc X-Google-Attributes: gidf74b3,public From: "C Javier Castro Pe�a" <jcaspen@ittc.ukans.edu> Subject: Re: A simple question about arrays Date: 1998/09/24 Message-ID: <360AFCC7.B527D148@ittc.ukans.edu> X-Deja-AN: 394586579 Content-Transfer-Encoding: 7bit References: <360AF771.8315170B@ittc.ukans.edu> <3623f8e7.107960028@forums.borland.com> To: pandeng@telepath.com Content-Type: text/plain; charset=us-ascii Organization: ITTC - University of Kansas Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language