Article View: be.comp.programming
Article #2685Re: Java Vector
From: Nicolas Barbier
Date: Sat, 17 Apr 2004 21:26
Date: Sat, 17 Apr 2004 21:26
21 lines
1558 bytes
1558 bytes
Bert wrote:
> Ik probeer een array van objecten in een Vector te steken. Dat insteken
> lukt (op het eerste zicht), maar ik vind niet hoe ik de data achteraf weer
> kan opvragen:
>
> Vector data = new Vector(0,1);
> Object test[] = {new Integer(10), "ikke", "test 1 2 3", new
> Boolean(true) };
> data.add(test);
>
> Hoe kan ik deze array terug uit de Vector halen, of eis ik iets
> onmogelijks?
(Object[]) data.elementAt(0)
Niet getest.
--
Nicolas Barbier
Protecting innovation against patent inflation <url:http://swpat.ffii.org/>
Technical Details
Message-ID:
<4081a0c1$0$11267$6c56d894@feed0.news.be.easynet.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!easynet-quince!easynet.net!feed0.news.be.easynet.net!not-for-mailReferences:
<uuWfc.73697$2C3.4939890@phobos.telenet-ops.be>Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit X-Google-Thread: fcea4,9b5cf0b0b9ffeb6 X-Google-Attributes: gidfcea4,public X-Google-ArrivalTime: 2004-04-17 14:25:49 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!easynet-quince!easynet.net!feed0.news.be.easynet.net!not-for-mail Message-ID: <4081a0c1$0$11267$6c56d894@feed0.news.be.easynet.net> From: Nicolas Barbier <reply@in.group.invalid> Subject: Re: Java Vector Newsgroups: be.comp.programming Date: Sat, 17 Apr 2004 23:26:08 +0200 References: <uuWfc.73697$2C3.4939890@phobos.telenet-ops.be> User-Agent: KNode/0.7.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Lines: 21 Organization: [ posted via Easynet Belgium ] NNTP-Posting-Date: 17 Apr 2004 21:25:21 GMT NNTP-Posting-Host: 213.193.183.79 X-Trace: 1082237121 feed0.news.be.easynet.net 11267 [::ffff:213.193.183.79]:33446 X-Complaints-To: abuse@be.easynet.net