🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #697

working with arraylist

#697
From: someguy
Date: Mon, 22 May 2000 00:00
14 lines
1504 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.

Please if you know how i can access these method i would appreciate it.
Technical Details
Message-ID: <958984148.685705@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,3ab74ead81e4ec2b,start
X-Google-Attributes: gid113ae9,public
X-Google-Thread: fdb77,3ab74ead81e4ec2b,start
X-Google-Attributes: gidfdb77,public
X-Google-Thread: 10d6db,3ab74ead81e4ec2b,start
X-Google-Attributes: gid10d6db,public
From: "someguy" <someguy@somewhere.com>
Subject: working with arraylist
Date: 2000/05/22
Message-ID: <958984148.685705@brs.ihug.com.au>
X-Deja-AN: 625863014
Cache-Post-Path: brs.ihug.com.au!unknown@p210-tnt1.brs.ihug.com.au
X-Priority: 3
X-Server-Date: 22 May 2000 08:29:09 GMT
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Organization: The Internet Group (Brsbane)
X-MSMail-Priority: Normal
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