Intro. to Programming Workshop - 4

Welcome back to the Intro. to Programming Workshops! This week's workshop will focus on methods!
Latest additions to the base source code for PokeVentures include player walk animations and switching player characters (press 1, 2 or 3).


  • Questions for Week 5:
  • PokeVentures Source Code (updated) -
  • How to setup PokeVentures - Week 3 Workshop
  • If you have any queries or comments, feel free to send me an email at: [email protected]



List of modifiers:

  • public - visible to classes (files) in any package (folders)
  • protected - visible to classes in same package and child classes
  • blank - visible to classes in same package
  • private - visible to same class only
  • static - always available during the program's life
  • final - reference cannot be altered after initialization
  • abstract - to define abstract classes and methods
  • synchronized - (not used in course) for threads
  • volatile - (not used in course) for threads


modifiers return_type methodName(Parameter list) {  


public static double square(double a) {  
    double result = a*a;
    return result;