Results 1 to 2 of 2
  1. #1
    tjhodge is offline Member
    Join Date
    Feb 2009
    Rep Power

    Default Storing data from text file in ArrayList

    i have been given the task to;
    1) Create an ArrayList CurrentAccounts of BankAccount object,
    2) Initialising the elements of this array using the given data.

    I have a class with all the deposit, withdrawal accName and numbers etc fields.
    The given data is in the format


    / - is the delimiter

    I must use the Scanner class

    How would i got about doing this? Being a home student its not easy to get help from lecturers. Any code ..hints.. would be helpful Thanks!

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Rep Power

Similar Threads

  1. parsing/storing large text data
    By hkansal in forum New To Java
    Replies: 4
    Last Post: 10-19-2008, 06:34 PM
  2. [SOLVED] Writing ArrayList to Text File on seperate Lines
    By shinjitsunohana in forum New To Java
    Replies: 9
    Last Post: 08-27-2008, 05:53 PM
  3. Replies: 40
    Last Post: 07-04-2008, 08:41 AM
  4. [SOLVED] How to Extract Data From this text file?
    By jazz2k8 in forum New To Java
    Replies: 31
    Last Post: 04-18-2008, 10:45 AM
  5. how do i write to a text file from an arraylist?
    By otoro_java in forum New To Java
    Replies: 3
    Last Post: 01-30-2008, 06:53 AM

Posting Permissions

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