Practical Exercise 4

Note that this exercise is based on Barnes and Koelling, Objects First, Chapter 4.

Download Projects

    Club

  1. Complete the Club class, an outline of which is provided, by carrying out the following:
    1. Within Club, define a field for an ArrayList
    2. Complete the numberofMembers method
    3. Complete the join method.

    Notebook

  2. Using notebook1 as a starting point, add a method search which takes a String argument and either prints the first note that starts with the string or prints a message indicating that there is no such note. Hint