I have a text file, which has to be processed. The lines contains, country name and some of its states, like below. i want to make it in an array. Is there any collections available which can be implemented?
if(line.contains("India")){
//add their states to the collections
}
India
Karnataka
TamilNadu
Andhrapradesh
Pakistan
Karachi
Lahore
Australia
Canberra
Adelide
USA
New York
Washington
New Jersy