@@ -0,0 +1,1186 @@
+/* A Pokedex serves as this program's mapping of each pokemon to it's corresponding %0A * Pokemon object, which matches the moves and stats of pokemon in battle to their correct counterpart.%0A * One Pokedex object per read in file (so whatever file is read in must have the entire pokemon gropu in it)%0A */%0A%0Aimport acm.util.*;%0Aimport java.io.*;%0Aimport java.util.*;%0A%0Apublic class Pokedex %7B%0A%09%0A%09// HashMap of Names of Pokemon to Pokemon objects%0A%09private Map %3CString, Pokemon%3Edatabase = new HashMap%3CString,Pokemon%3E ();%0A%09%0A%09// Upon initializing a Pokedex, we read in a file name line by line. %0A%09// Each line is a Pokemon with stats.%0A%09public Pokedex (String filename1) %7B%0A%09%09try %7B%0A%09%09%09BufferedReader rd = new BufferedReader(new FileReader(filename1));%0A%09%09%09while (true) %7B%0A%09%09%09%09String line = rd.readLine();%0A%09%09%09%09if (line == null) break;%0A%09%09%09%09Pokemon entry = new Pokemon(line);%0A%09%09%09%09database.put(entry.getName(), entry);%0A%09%09%09%7D%0A%09%09%09rd.close();%0A%09%09%09%7D catch(IOException ex) %7B%0A%09%09%09%09throw new ErrorException(ex);%0A%09%09%09%7D%0A%09%7D%0A%09%0A%09// Grabber function for finding Pokemon in Pokedex%0A%09public Pokemon findEntry(String name) %7B%0A%09%09if (database.containsKey(name))%7B%0A%09%09%09return database.get(name);%0A%09%09%7D else %7B%0A%09%09%09return null;%0A%09%09%7D%0A%09%7D%0A%7D%0A

Create Pokedex.java