Hey there. I've been given a project to due that involves working with textfiles.
The text files are given in the following structure
ID1<>NAME1
ID2<>NAME2
ID3<>NAME3
Supposedly I'd have a separate class that does I/O and Hashmaps. I have an idea with the i/o codes but don't know how to deal with hashmaps.
I need to display the NAME part only in a text area without the ID or <>, so I should have a method converts the TXT file into hashmap, and then return the name part as an array?
Any help as appreciated !
The text files are given in the following structure
ID1<>NAME1
ID2<>NAME2
ID3<>NAME3
Supposedly I'd have a separate class that does I/O and Hashmaps. I have an idea with the i/o codes but don't know how to deal with hashmaps.
I need to display the NAME part only in a text area without the ID or <>, so I should have a method converts the TXT file into hashmap, and then return the name part as an array?
Any help as appreciated !