🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.help
Article #21

Re: swapping array elements

#21
From: Jon Skeet
Date: Mon, 13 Nov 2000 00:00
13 lines
1257 bytes
deepakgrewal@rediffmail.com wrote:
>   i m kinda new to java so maybe this isnt the best advice but u can still
> try....
>  when u call the method swap.... shouldnt u be saying this.swap
> instead......??
>  as the swap method is in the same class.............
> tell me if it did or didnt work........

No, that wouldn't work. this.swap() and swap() are synonymous.

-- 
Jon Skeet - skeet@pobox.com
http://www.pobox.com/~skeet
Technical Details
Message-ID: <MPG.1479f2501218605998976c@news.peramon.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8tgikk$gk6$1@bugstomper.ihug.com.au> <3a0fe06c@news1.idx.com.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10a146,1141f690fb55e2e0
X-Google-Attributes: gid10a146,public
X-Google-Thread: 10d6db,1141f690fb55e2e0
X-Google-Attributes: gid10d6db,public
X-Google-Thread: 113ae9,1141f690fb55e2e0
X-Google-Attributes: gid113ae9,public
From: Jon Skeet <skeet@pobox.com>
Subject: Re: swapping array elements
Date: 2000/11/13
Message-ID: <MPG.1479f2501218605998976c@news.peramon.com>
X-Deja-AN: 693045616
References: <8tgikk$gk6$1@bugstomper.ihug.com.au> <3a0fe06c@news1.idx.com.au>
X-Complaints-To: abuse@uk.uu.net
X-Trace: soap.pipex.net 974119370 5149 193.132.195.113 (13 Nov 2000 12:42:50 GMT)
Organization: Peramon Technology Ltd.
NNTP-Posting-Date: 13 Nov 2000 12:42:50 GMT
Newsgroups: comp.lang.java.help,comp.lang.java.programmer,aus.computers.java