Here is a mini Java practical with memorandum, and eight PowerPoint presentations explaining exactly how to build this solution, step by step. The object is to create a three class program with a UI class, a manager class and an object/template class (no inheritance). The manager class reads in a text file and creates an array of objects.

NOTE: Each slide has an audio track. Click on the speaker icon or on the play button at the bottom of the screen to listen to the audio track. You need to manually click to move to the next slide. Equally, if you right click your mouse, you can go back to the previous slide.

The presentation files are large, between 80Mb and 150Mb each. It may be best to download these late at night or very early in the morning. (Once back at school you can ask for them on a memory stick.)

If you are a competent coder you can just jump to Presentation Five which is a quick overview of parts 1 – 4.

==========================================================================

1) Click here for the Java mini prelim paper and memorandum.

2) Here for Presentation One.  The creation of the project, the package and the main class in NetBeans. Creation of a UI class and a manager class. The constructor method that finds the text file.

3) Here for Presentation Two. Avoiding structure problems in our text file. Reading in the text file using the while loop.

4) Here for Presentation Three. Creates the array of objects – one player, one new object. Passing of the parameters to the player object.

5) Here for Presentation Four. Breaks name into first and last name. Adding of the “toString” method to the player class. Changes the “yes/no” String data into “true/false” boolean data as per the exam question.

6) Here for Presentation Five.  This is a quick overview of parts 1 to 4 provided for revision purposes. 

7) Here for Presentation Six.  The all important “printAll” method that uses the “toString” method in the object class. We have read the records in and we are able to print them out, but we have not yet answered the exam paper correctly.

8) Here for Presentation Seven. Time to being to shape our solution so that it matches the exam paper. Also, the strategy of answering a practical Java exam paper. A good stategy can make a difference of up to 10% !!

NOTE: You can view a PowerPoint presentation on your phone or PC even if you are not a Ms Office user. Click here for more information

9) Before we move to getter and setting methods (accessor and mutator methods) I would like you to watch Mike Dane’s excellent YouTube video on the topic. Click here to view  

10) Here for Presentation Eight. Adding of getter and setter methods to match the requirements of the exam paper.