SwitchTest1.java



public class SwitchTest1 {

    public static void main( String[] args ) {

        char c = 'B';
        switch( c ) {
            case 'A':
                System.out.println( "AAAAAAAAAA" );
                break;
            case 'B':
                System.out.println( "BBBBBBBBBB" );
                break;
            case 'C':
                System.out.println( "CCCCCCCCCC" );
                break;
            default:
                System.out.println( "0123456789" );
        }
    }
}