User Tools

Site Tools


pokemon_database_activities

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
pokemon_database_activities [2025/08/01 11:27] – created frchrispokemon_database_activities [2025/08/01 12:31] (current) – [Adapting the url in Runestone] frchris
Line 1: Line 1:
 ====== 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.  +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   
  
   - Make a new Project, and note what directory you created it in.   - Make a new Project, and note what directory you created it in.
Line 7: Line 11:
   - Copy and paste the the code for Activity 4.6.5 though 4.6.7   - Copy and paste the the code for Activity 4.6.5 though 4.6.7
   - Change filename to ''pokemondb.csv'' (instead of ''pokemon.csv''   - 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:
 +
 +<code java>
 + url = url.replace(".png", ".jpg"); // different file type
 + url = url.replace("play.pokemonshowdown.com/sprites/bw", 
 +                   "img.pokemondb.net/artwork"); // different website
 +</code> 
pokemon_database_activities.1754062045.txt.gz · Last modified: 2025/08/01 11:27 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki