Computer Lab #3
This lab illustrates the following concepts
- recursion
- swing and events
- MVC
Sun
libraries documentation
1) Recursion
Recursion slides
Example 1 (solution):
- Write a recursive method that takes a string and returns true if the string is a palindrome
- Write a recursive method that takes an integer and returns the number of digits in that integer
- Write a recursive method that prints the solution to the Towers of Hanoi puzzle (see the slides given above)
Example 2:
2) Swing and events
Sample: Face.java, FaceTest.java
Solution: Face.java, FaceTest.java
3) MVC
Do 2) using an MVC approach (solution: Lab.zip)