Article View: borland.public.jbuilder.java.language
Article #15983Re: Integer class
From: Chris Hill
Date: Mon, 12 Apr 1999 00:00
Date: Mon, 12 Apr 1999 00:00
36 lines
1276 bytes
1276 bytes
You are not replacing the object. You can't send objects out of a
function using parameters.
Integer myint = null;
Read(myint);
// myint == null
myint does not reference the new Integer after calling Read.
On Sun, 11 Apr 1999 21:04:11 -0700, "Jason C. Leach"
<leachjc@hotmail.com> wrote:
>hi,
>
>Can I do this:
> public void Read(Integer tmp)
> {
> try
> {
> tmp = new Integer(fin.read());
> }
> catch (IOException e)
> {
> }
> return;
>}
>
>If it comes in by refrence, I just replace the obj w. a new one w/ a new
>value. Or am I not replacing the original object with a new one?
>
>Thank,
> J
>--
Chris Hill
Chris244@aol.com
Technical Details
Message-ID:
<3711f4f4.2375726363@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3710E522.7A438C7E@hotmail.com> <3710fa40.2311545937@forums.borland.com> <37113B97.9D2F41A9@hotmail.com> <37114da0.2332890198@forums.borland.com> <371170BB.63582C86@hotmail.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,48b0db82994ba0f7 X-Google-Attributes: gidf74b3,public From: Chris244@aol.com (Chris Hill) Subject: Re: Integer class Date: 1999/04/12 Message-ID: <3711f4f4.2375726363@forums.borland.com> X-Deja-AN: 465467044 References: <3710E522.7A438C7E@hotmail.com> <3710fa40.2311545937@forums.borland.com> <37113B97.9D2F41A9@hotmail.com> <37114da0.2332890198@forums.borland.com> <371170BB.63582C86@hotmail.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language