A theater class in Java