How to store the Information in arrays or Map?

Hello Everyone,

I'm reading a calling information from a file

Calling number, Called to, Time Started, Time Ended

050, 060 , 1255, 1350

050, 080, 1050, 1100

050, 060, 1110, 1130

080, 090, 0530, 0610

What is the best way to read this information and store it in arrays so that if I want to find out 050 called what numbers and at what times ? How can I do that ?

[412 byte] By [Thukrala] at [2007-11-26 20:48:54]
# 1
Create a class called Call or CallData or something that has fields for those quantities. Store instances of that class in a Map where the key is the calling number and the value is the object. http://java.sun.com/docs/books/tutorial/collections/
jverda at 2007-7-10 2:12:23 > top of Java-index,Java Essentials,New To Java...