Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Arrays;
- public class Pokedex implements PokedexInterface {
- private Pokemon pokedex[] = new Pokemon[1000];
- private int pokemonCount = 0;
- String item = null;
- @Override
- public String toString() {
- String output ="";
- // loop through pokedex
- // add each item of the pokedex to the output variable
- for(int i = 0; i< pokedex.length; i++){
- output = "cn=" + pokedex[i];
- }
- return output;
- }
- public void addPokemon(Pokemon pokemon) {
- return;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement