Advertisement
Glorksnork

Pokedex

Jan 21st, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. import java.util.Arrays;
  2.  
  3. public class Pokedex implements PokedexInterface {
  4. private Pokemon pokedex[] = new Pokemon[1000];
  5. private int pokemonCount = 0;
  6.  
  7.  
  8. String item = null;
  9.  
  10.  
  11.  
  12. @Override
  13. public String toString() {
  14. String output ="";
  15. // loop through pokedex
  16. // add each item of the pokedex to the output variable
  17.  
  18. for(int i = 0; i< pokedex.length; i++){
  19. output = "cn=" + pokedex[i];
  20.  
  21.  
  22.  
  23. }
  24. return output;
  25. }
  26.  
  27. public void addPokemon(Pokemon pokemon) {
  28. return;
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement