I'm wondering if anyone could help me with an assignment. Basically we have to create an address book in Java using contacts from a file. The ability to search through the contacts and pull up all relevant data is necessary. The contacts are stored in the format below:
name
address
mobile number
home number
name
address
...
I am having difficulty with importing the data into a workable format for an address book. I've tried using classes but I can't seem to get it working. I don't know whether to use a set of array lists or try using location markers for a string array (i.e use blocks 0 -3 for one contact, 4 - 7 to another one etc)
Any help would be much appreciated, thanks in advance
Question
+John. Subscriber¹
I'm wondering if anyone could help me with an assignment. Basically we have to create an address book in Java using contacts from a file. The ability to search through the contacts and pull up all relevant data is necessary. The contacts are stored in the format below:
name
address
mobile number
home number
name
address
...
I am having difficulty with importing the data into a workable format for an address book. I've tried using classes but I can't seem to get it working. I don't know whether to use a set of array lists or try using location markers for a string array (i.e use blocks 0 -3 for one contact, 4 - 7 to another one etc)
Any help would be much appreciated, thanks in advance
John.
Link to comment
Share on other sites
7 answers to this question
Recommended Posts