Article View: borland.public.jbuilder.java.language
Article #17809Re: A simple question about arrays
From: Chris Hill
Date: Fri, 25 Sep 1998 00:00
Date: Fri, 25 Sep 1998 00:00
25 lines
1074 bytes
1074 bytes
All array types in java have a length field. The array subscripts range from 0 to length-1. int num_elements = DataLoaded1.length; 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. > > >regards, >javier Chris Hill hillca@cs.purdue.edu
Technical Details
Message-ID:
<360b0127.1169748359@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: hillca@cs.purdue.edu (Chris Hill) Subject: Re: A simple question about arrays Date: 1998/09/25 Message-ID: <360b0127.1169748359@forums.borland.com> X-Deja-AN: 394595554 References: <360AF771.8315170B@ittc.ukans.edu> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language