Update Game.java

This commit is contained in:
Kristian Knarvik 2017-11-28 14:55:44 +01:00 committed by GitHub
parent a7dd6c144c
commit 79ad8fcb4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -232,7 +232,7 @@ public class Game {
*/
public static ArrayList<Pokemon> readPokemon() {
ArrayList<Pokemon> pokemon = new ArrayList<Pokemon>();
try (Scanner file = new Scanner(new File("Pokemon.txt"))) {
try (Scanner file = new Scanner(new File("config/Pokemon.txt"))) {
while (file.hasNextLine()) {
pokemon.add(new Pokemon(file.nextLine()));
}