🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18264

Re: Vectors of vectors

#18264
From: Acid Steve
Date: Fri, 24 Jul 1998 00:00
26 lines
1492 bytes
Hi, Michael,

I think it must be standard conversion by means of putting (Vector) or
(String), etc in front of vector.elementAt(j). So the whole line would
look like:
Vector v = (Vector)v1.elementAt(j).
The output from removeElement is not Object but boolean, while
elementAt(j) returns Object. So it must be converted in the way i
mentioned above.

Sure it helped,
                                 Acid Steve


Michael Schuurman wrote:
> 
> hi,
> I have some problems working with an output that results in a vector
> of vectors.  What I would like to do is be able to remove one of the
> element/vectors from the parent vector and work with it as a vector.
> However, the output from the removeElement() method(and other such
> methods)   is an object (be it a string object,Integer,etc.).  Is
> there a way to convert this object to a vector? Or, remove the element
> as a vector?
> thanks in advance,
> mike
Technical Details
Message-ID: <35B7BA47.B841A1B0@hempseed.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <35B7A425.49A803F6@phys.ualberta.ca>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,f4014cf4ff6e3a41
X-Google-Attributes: gidf74b3,public
From: Acid Steve <acidsteve@hempseed.com>
Subject: Re: Vectors of vectors
Date: 1998/07/24
Message-ID: <35B7BA47.B841A1B0@hempseed.com>
X-Deja-AN: 374317299
Content-Transfer-Encoding: 7bit
References: <35B7A425.49A803F6@phys.ualberta.ca>
X-Accept-Language: ru
Content-Type: text/plain; charset=koi8-r
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language