Results 1 to 3 of 3

Thread: Code Help?

  1. #1
    Join Date
    Mar 2012
    Posts
    4
    Rep Power
    0

    Default Code Help?

    Alright so in my programming class we basicly need to create a program that reads another file. An address book in .csv(Excel) format. I need to put the info in different arrays. Each array is going to have something like, first name, last name, cell number, address etc. until all 8 arrays are ready. they will also store up to 50 variables each. I need to read the file with the information then print it to the user in a nice organized manner. The issue is that im not sure how to seperate the .csv file into different arrays. I can get the entire thing to print but now do i store information into seperate parts. For example array1 would only print their first name, array 2 would print their phone number and so on. I appreciate any help you guys can give me.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,445
    Blog Entries
    7
    Rep Power
    20

    Default Re: Code Help?

    csv means Comma Separated Values so I think it's obvious to split a line at the commas; read the API documentation for the String.split(...) method.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    Join Date
    Mar 2012
    Posts
    4
    Rep Power
    0

    Default Re: Code Help?

    Thanks man im sure thatll have everything i need. Is it so obvious that im jsut getting started with programming xD
    Ill let you know how it goes.

Similar Threads

  1. Replies: 1
    Last Post: 03-25-2012, 02:40 AM
  2. Replies: 16
    Last Post: 01-31-2012, 08:36 PM
  3. Replies: 0
    Last Post: 08-07-2011, 08:32 PM
  4. Replies: 0
    Last Post: 02-21-2011, 11:50 AM
  5. Replies: 1
    Last Post: 04-26-2007, 03:52 PM

Posting Permissions

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