🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #699

help with arrayList urgent

#699
From: someguy
Date: Mon, 22 May 2000 00:00
18 lines
1782 bytes
greetings

I have created an arraylist, which i have used to store objects of a purpose
desinged class that holds a string and integer, and the toString returns
both in a string "ie return(myString +myInteger);".  I would like to know
how to access the methods of my class from the arraylist.

ie myArrayList.get(index).someMethodFromMyClass

Interstingly enough, i can create new objects and add them to my list.  I
can get the values of these objects, but i cant invoke methods built into
them to modify their values.

The reason i have used arraylist is so that i dont have define the size of
the arraylist - and for what i am doing this is an advantage.  However if
you have any better ideas then i would be glad to hear them.

Please if you know how i can access these method i would appreciate it.
Technical Details
Message-ID: <958986598.802617@brs.ihug.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113ae9,52d7c09c5f8362a6,start
X-Google-Attributes: gid113ae9,public
X-Google-Thread: fdb77,52d7c09c5f8362a6,start
X-Google-Attributes: gidfdb77,public
X-Google-Thread: 10d6db,52d7c09c5f8362a6,start
X-Google-Attributes: gid10d6db,public
From: "someguy" <someguy@somewhere.com>
Subject: help with arrayList urgent
Date: 2000/05/22
Message-ID: <958986598.802617@brs.ihug.com.au>
X-Deja-AN: 625910396
Cache-Post-Path: brs.ihug.com.au!unknown@p210-tnt1.brs.ihug.com.au
X-Priority: 3
X-Server-Date: 22 May 2000 09:10:00 GMT
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Organization: The Internet Group (Brsbane)
X-MSMail-Priority: Normal
Keywords: array methods arraylist linked list help urgent
X-Cache: nntpcache 2.3.3b4 (see http://www.nntpcache.org/)
Reply-To: "someguy" <someguy@somewhere.com>
Newsgroups: aus.computers.java,comp.lang.java.advocacy,comp.lang.java.help