public static void main(String[] args){
		try{
			Chap12Q20 cq = new Chap12Q20();
			cq.atBat();
		}catch(PopFoul e){
			System.out.println(e);
		}catch(RainedOut e){
			System.out.println(e);
		}catch(BaseballException e){
			System.out.println(e);
		}
		
		
		try{
			Inning i = new Chap12Q20();
			i.atBat();
		}catch(Strike e){
			e.printStackTrace();
		}catch(Foul e){
			e.printStackTrace();
		}catch(RainedOut e){
			e.printStackTrace();
		}catch(BaseballException e){
			e.printStackTrace();
		}
	}