🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Vector of ints?

#14973
From: Mark Wenzel
Date: Wed, 21 Jul 1999 00:00
26 lines
1461 bytes
A vector is a growable list of Object pointers which would make Tor's
suggestion problematic, either use an array of primitives and place a deep
copy method in a try / catch block to allow it to grow, or simply deal with
them (the integers) as Objects (easier) as Jason suggests and use the vector
as is.
While being a bit more of a pain to code, the array of primitives has the
advantage of being thinner in memory and better in serialization for wire
transport.

Marie Ricketts wrote in message <3794D472.8EEC1021@dartmouth.edu>...
>How can I make a Vector of ints?  There must be a workaround for the "no
>
>primatives" rule.
>
>Thanks in advance for any ideas.
>
>--
>
>
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>Marie G. Ricketts    Senior Programmer,
>Marie.G.Ricketts@dartmouth.edu   Tuck School of Business
>Ph: 603-646-2291.   Dartmouth College
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
>
Technical Details
Message-ID: <7n57lu$kod1@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3794D472.8EEC1021@dartmouth.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,a318191aa3403cad
X-Google-Attributes: gidf74b3,public
From: "Mark Wenzel" <mwenzel@holtalliances.com>
Subject: Re: Vector of ints?
Date: 1999/07/21
Message-ID: <7n57lu$kod1@forums.borland.com>
X-Deja-AN: 503656935
References: <3794D472.8EEC1021@dartmouth.edu>
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.language