Dynamic Arrays

Are there any dynamic arrays in Java?
I'm a VB programmer, and i'm making a school project where i need to increment Clients (in memmory).
In VB i would do something like this:
Form Load
dim Client() as string
redim Client(1)

Button1_Click()
redim preserve Client(ubound(Client)+1)
Client(ubound(Client)-1)="Value"
//----------------------------------------
How can i do something like this in Java?
Is there a way?
(this is very important for me because its a school project)

My thanks in advanced

Comments

  • Yes you have in Java. ArrayList and Vector are known as Dynamic arrays in java.

    Regards,
    Muruga


    : Are there any dynamic arrays in Java?
    : I'm a VB programmer, and i'm making a school project where i need to increment Clients (in memmory).
    : In VB i would do something like this:
    : Form Load
    : dim Client() as string
    : redim Client(1)
    :
    : Button1_Click()
    : redim preserve Client(ubound(Client)+1)
    : Client(ubound(Client)-1)="Value"
    : //----------------------------------------
    : How can i do something like this in Java?
    : Is there a way?
    : (this is very important for me because its a school project)
    :
    : My thanks in advanced
    :
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion