Advertisement
Krystman

Pokemon Array Example

Feb 20th, 2019
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. String[] Pokeball;
  2.  
  3. void setup() {
  4.   Pokeball = new String[6];
  5.  
  6.   Pokeball[0] = "Mega Charizard";
  7.   Pokeball[1] = "Magikarp";  
  8.   Pokeball[2] = "Shuckle";
  9.   Pokeball[3] = "Ditto";
  10.   Pokeball[4] = "Beedrill";
  11.   Pokeball[5] = "Ivysaur";
  12.    
  13.   println("My Pokemon Dream Team:");
  14.   println("----------------");
  15.  
  16.   for (int i=0; i<6; i++) {
  17.     println(Pokeball[i]);
  18.   }
  19. }
  20.  
  21. void draw() {
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement