Article View: borland.public.jbuilder.java.language
Article #7168Altering data with a method call
From: David Chandler
Date: Sun, 08 Jul 2001 07:58
Date: Sun, 08 Jul 2001 07:58
10 lines
1315 bytes
1315 bytes
I am moving from Pascal to Java. In Pascal you could pass either values or variables to a procedure. Variables get altered so the revised data gets passed back. Java allows you to pass only values. I can get a single return value, but what if I want a method to alter other variables? Do I have to rely on globals? What is the usual practice here? -- David Chandler
Technical Details
Message-ID:
<3B4812BB.F35B508E@netzero.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-peer-west.sprintlink.net!news.sprintlink.net!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,1c0aad99b07f6335,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-07-08 01:05:55 PST Message-ID: <3B4812BB.F35B508E@netzero.net> Date: Sun, 08 Jul 2001 00:58:52 -0700 From: David Chandler <davidschandler@netzero.net> Reply-To: David@DavidChandler.com X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en-US,en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Altering data with a method call Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 64.66.203.135 X-Trace: dnews 994579352 64.66.203.135 (8 Jul 2001 01:02:32 -0700) Lines: 12 Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news-peer-west.sprintlink.net!news.sprintlink.net!enews.sgi.com!news.xtra.co.nz!newsfeeds.ihug.co.nz!ihug.co.nz!dnews