Review Exam
(do not hand in)
25 pts
1. Write a method that returns true if its parameter is one of my initials (d,s) (case independent).
25 pts
2. Write a method that accepts a String as its parameter and outputs every letter between 'r' and 'z' (case independent) in the String.
20ts
3. Write a method that accepts an array of floats as a parameter. The method should return the largest of the numbers in the array.
35 pts
4. Write a class that has a character and an integer class variable and has:
· a constructor that initializes each of these,
· accessor methods that return the value in each variable
· modifier methods that change the value in each variable
·
a toString method that
returns a string which describes the class variables in the class