Article View: be.comp.programming
Article #12566Re: java
From: TaXaN
Date: Sun, 04 Nov 2001 23:52
Date: Sun, 04 Nov 2001 23:52
30 lines
1846 bytes
1846 bytes
Niels Van Eetvelde <pleaseusethe@replyto.address> wrote in
news:Xns914EC36584DB8pastoorwalter@195.130.132.65:
> Op 02 nov 2001 schreef Dietmar Hertsen:
>
>> Hoe maak je van een array een retourneerwaarde?
>>
>
> Door in je cursus te lezen dat dat niet gaat/kan
public class Test {
public static void main (String argv[]) {
int[] bar = foo();
for (int i = 0;i < 3;i++)
System.out.print(bar[i]+" ");
}
public static int[] foo (){
int[] temp = {1,2,3};
return temp;
}
}
--
TaXaN
|-<[. . . . ICQ: 0xA395A3 . . . . PGP key available . . . . ]>-|
| |
|-<[. "Hey, tell me the truth...are we still in the game?" .]>-|
|-<[. . . . . . . . . . . (eXistenZ) . . . . . . . . . . . .]>-|
Technical Details
Message-ID:
<Xns91508F9D5F4Etaxankotnetorg@134.58.127.12>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.190.198.17!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!not-for-mailReferences:
<3BE2BF73.2BCF1@mailandnews.com> <Xns914EC36584DB8pastoorwalter@195.130.132.65>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: fcea4,bd21f472ce0f1675 X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2001-11-04 15:52:58 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!193.190.198.17!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!not-for-mail From: TaXaN@GEENROMMELkotnet.org (TaXaN) Newsgroups: be.comp.programming Subject: Re: java Date: Sun, 4 Nov 2001 23:52:56 +0000 (UTC) Organization: KULeuvenNet Lines: 30 Message-ID: <Xns91508F9D5F4Etaxankotnetorg@134.58.127.12> References: <3BE2BF73.2BCF1@mailandnews.com> <Xns914EC36584DB8pastoorwalter@195.130.132.65> NNTP-Posting-Host: seven.kulnet.kuleuven.ac.be X-Trace: naxos.belnet.be 1004917976 29897 134.58.127.12 (4 Nov 2001 23:52:56 GMT) X-Complaints-To: abuse@belnet.be NNTP-Posting-Date: Sun, 4 Nov 2001 23:52:56 +0000 (UTC) User-Agent: Xnews/4.05.11 Cache-Post-Path: seven.kulnet.kuleuven.ac.be!unknown@mystra.kotnet.org X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/)