User Tools

Site Tools


pokemon_database_activities

Pokemon Database Activities

The CSAwesone2 Course has some great activities which may not completely work on a web browser, but it will on an IDE like BlueJ or Eclipse, or else modify the url in Runstone.

Using an IDE

In this case you would have to write a client class to show the

  1. Make a new Project, and note what directory you created it in.
  2. Download pokemondb.csv and move it to your project folder
  3. Copy and paste the the code for Activity 4.6.5 though 4.6.7
  4. Change filename to pokemondb.csv (instead of pokemon.csv)

Adapting the url in Runestone

In step 4 after you assign the correct element of the field array to the String url, you need to alter url to point to a jpg file on a different website:

 url = url.replace(".png", ".jpg"); // different file type
 url = url.replace("play.pokemonshowdown.com/sprites/bw", 
                   "img.pokemondb.net/artwork"); // different website
pokemon_database_activities.txt · Last modified: 2025/08/01 12:31 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki