Results 1 to 3 of 3
Thread: Code Help?
- 04-17-2012, 09:49 PM #1
Member
- Join Date
- Mar 2012
- Posts
- 4
- Rep Power
- 0
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.
- 04-17-2012, 10:00 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
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,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 04-17-2012, 10:02 PM #3
Member
- Join Date
- Mar 2012
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
this code is not working I Dont know why ? Public void close the last code!!
By lukote04 in forum New To JavaReplies: 1Last Post: 03-25-2012, 02:40 AM -
I want the source code of DUK's Bank , the example code in Java EE 5 Tutorial 2010
By zahra in forum New To JavaReplies: 16Last Post: 01-31-2012, 08:36 PM -
servlet include method copying sorce code and executing source code as output how to
By shamkuma2k in forum Advanced JavaReplies: 0Last Post: 08-07-2011, 08:32 PM -
C server code - Java CLient Code _ TCP Connection Problem
By rmd22 in forum NetworkingReplies: 0Last Post: 02-21-2011, 11:50 AM -
Generating Code Automatically Using Custom code Template In Eclipse
By JavaForums in forum EclipseReplies: 1Last Post: 04-26-2007, 03:52 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks