Results 1 to 3 of 3
  1. #1
    noviceJava is offline Member
    Join Date
    Apr 2012
    Posts
    16
    Rep Power
    0

    Question Java examples for dynamic arrays

    I'm trying to find good examples of dynamic arrays, I understand that you must code, but please assist
    ok i have text file that contains the following:

    A 11 22 33 OUT 22 33 44 OUT 11 19 19 OUT
    B
    C
    D 23 24 26 OUT
    E
    F
    G 23 24 27 OUT

    I trying to find good examples to write a java program to read in this text file but the catch is these numbers can change, for example
    letter D could be 23 24 26 OUT 12 23 34 OUT, or letter A only might contain 11 22 33 OUT these elements could possible change,
    I think is is called dynamic arrays but have not found any real good examples, still looking thanks for any help

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,007
    Rep Power
    34

    Default Re: Java examples for dynamic arrays

    Java arrays are not dynamic. They are given a size when they are defined/initialized.
    Perhaps you are thinking of the ArrayList class. It will expand in size as needed.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    noviceJava is offline Member
    Join Date
    Apr 2012
    Posts
    16
    Rep Power
    0

Similar Threads

  1. Fibonacci sequence using Dynamic Arrays
    By MylesPollie in forum New To Java
    Replies: 6
    Last Post: 02-17-2014, 05:26 PM
  2. J2ME Dynamic arrays
    By FiniteRed in forum CLDC and MIDP
    Replies: 2
    Last Post: 08-11-2011, 03:35 PM
  3. 2d dynamic arrays
    By seeder in forum Advanced Java
    Replies: 1
    Last Post: 03-15-2010, 11:03 AM
  4. dynamic two dimensional arrays?
    By dinosoep in forum New To Java
    Replies: 4
    Last Post: 12-05-2009, 07:12 PM
  5. I need examples using parallel arrays
    By dangerzone9k in forum New To Java
    Replies: 10
    Last Post: 04-04-2009, 05:11 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •