Re: Java and Dynamic arrays
From: Roedy Green (see_at_mindprod.com)
Date: 04/18/04
- Next message: Christophe Vanfleteren: "Re: Visual programmer RAD IDE"
- Previous message: FALCON0320: "Visual programmer RAD IDE"
- In reply to: Poochie: "Java and Dynamic arrays"
- Next in thread: Bryce (Work): "Re: Java and Dynamic arrays"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 17 Apr 2004 23:19:51 GMT
On Sat, 17 Apr 2004 21:23:07 GMT, Poochie <poochie2NO_SPAM@libero.it>
wrote or quoted :
>I'm currently developing an application in Delphi that in a few months I'll
>need to port Java, witch I'm about to start studying, so I needed to know
>if Java supports dynamic arrays.
Java lets you allocate arrays of any size determined at runtime, but
they are fixed. To grow you must allocate a new array and copy, like
C. Java also has the Vector collection that is like an array that
grows automatically as needed. There are many other Collections that
come built-in. In Java 1.5 Vectors can contain specific object types.
Before that, the contents are considered generic objects, and it up to
you when you fish them out to manually cast them back to what they
really are.
See http://mindprod.com/jgloss/collection.html
-- Canadian Mind Products, Roedy Green. Coaching, problem solving, economical contract programming. See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
- Next message: Christophe Vanfleteren: "Re: Visual programmer RAD IDE"
- Previous message: FALCON0320: "Visual programmer RAD IDE"
- In reply to: Poochie: "Java and Dynamic arrays"
- Next in thread: Bryce (Work): "Re: Java and Dynamic arrays"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|