public class HappyGilmore throws BallNotInTheHoleException,
BallStillNotInTheHoleException
{
public static void main(String[] args)
{
HappyGilmore happyGilmore = new HappyGilmore();
try
{
happyGilmore.holeInOne();
}
catch(BallNotInTheHoleException exception)
{
happyGilmore.getInTheHoleBall();
}
catch(BallStillNotInTheHoleException exception)
{
happyGilmore.whyWontYouGetInTheHoleBall();
}
finally
{
happyGilmore.suckMyWhiteAssBall();
if(happyGilmore.isAngry())
{
happyGilmore.punchSomeone();
}
}
}
}
BallStillNotInTheHoleException
{
public static void main(String[] args)
{
HappyGilmore happyGilmore = new HappyGilmore();
try
{
happyGilmore.holeInOne();
}
catch(BallNotInTheHoleException exception)
{
happyGilmore.getInTheHoleBall();
}
catch(BallStillNotInTheHoleException exception)
{
happyGilmore.whyWontYouGetInTheHoleBall();
}
finally
{
happyGilmore.suckMyWhiteAssBall();
if(happyGilmore.isAngry())
{
happyGilmore.punchSomeone();
}
}
}
}