Steps to creating a program with methods


Step 1: Design


Step 2: Create the class


Step 3: Create the structure

Step 4: Write comments

Step 5: Set up the input variables

Step 6: Set up the output variables

Step 7:  Code the parts (methods)

  •   Inside the method brackets (the ones underneath the method) type the statements needed to  create the part. (This part is different for every method. It depends upon what the method wants to accomplish.)
  • Change the return value to the real variable you want to return. (ex: return abc);
  • Compile and see no errors.
  • You can also right click on the class in the BlueJ window and execute the individual methods to be sure they work on their own.

  • Step 8:  Call the parts (methods)

    Inside the main method brackets (the ones underneath the main method):