
13.10 Exercises,Problems,and Projects 995
EXERCISES,PROBLEMS, AND PROJECTS
50. Write a class with just one instance variable, a String representing
some HTML code. Your constructor should take a file name as its
only parameter (you will need to make up some sample HTML files
to test your program). Write a recursive method returning the num-
ber of occurrences of a specified character in the HTML String. Your
program should include a client class to test your class. In particular,
call the recursive method to check whether the sample files contain an
equal number of < and > characters.
51. Write a class with just one instance variable, a String representing ...