The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.

Reading CSV files into a program

Hi there,
So I'm new to this forum, so I feel like I shold introduce myself really quick. I'm 19, and a freshman in college, double majoring in Business Administration and Computer Information Science. (Told you it'd be quick)

Alright, so I'm working on a program that reads a CSV files that contain cities, their coordinates, highways that connect to them, and distance/time between them. The idea of this program is to read that file, and print the distance and time between them, the roads that connect them together and the time it takes to travel between them. It sounds simply, but its giving me a lot of trouble (this is my first year of computer science after all). So far I have three classes, a main class, a City class, and a Road class.
Here's the code I have so far:
Main:

I can't figure out how to take the information the that's read in, and then manipulate it and print it. Any advice would be greatly appreciated!
Thanks,
Wrathgarr

Edit: I thought I should add that the format of the information in the CSV file looks like this:
Delta,108,291,,
Montrose,127,325,,
Gunnison,230,314,,
Grand Junction,64,256,,
,,,,
US 50,Grand Junction,Delta,43,57
US 50,Delta,Montrose,23,30
US 50,Montrose,Gunnison,65,76

While the output should look like this:
Delta is at (108, 291)
US 50 goes to Grand Junction (43 miles, 57 minutes)
US 50 goes to Montrose (23 miles, 30 minutes)
Grand Junction is at (58, 251)
US 50 goes to Delta (43 miles, 57 minutes)
Montrose is at (127, 325)
US 50 goes to Delta (23 miles, 30 minutes)

Last edited by Wrathgarr; April 14th, 2010 at 07:00 PM.
Reason: Clarification