Jak tablica listy z ograniczeniem do pliku tekstowego Java
try (
Scanner s = new Scanner(new File(dataPath))) {
s.useDelimiter("[:]");
ArrayList<String> animalArr = new ArrayList();
while (s.hasNext()) {
animalArr.add(s.next());
}
System.out.println(animalArr.get(7));
Dark Dove