public static void findSeason ( int M ) {
  switch ( M ) {
    case 12 : case 1 : case 2 : System . out . println ( "WINTER" ) ;
    break ;
    case 3 : case 4 : case 5 : System . out . println ( "SPRING" ) ;
    break ;
    case 6 : case 7 : case 8 : System . out . println ( "SUMMER" ) ;
    break ;
    case 9 : case 10 : case 11 : System . out . println ( "AUTUMN" ) ;
    break ;
    default : System . out . println ( "Invalid Month number" ) ;
    break ;
  }
}

public static void findSeason ( int M ) { switch ( M ) { case 12 : case 1 : case 2 : System . out . println ( " WINTER " ) ; break ; case 3 : case 4 : case 5 : System . out . println ( " SPRING " ) ; break ; case 6 : case 7 : case 8 : System . out . println ( " SUMMER " ) ; break ; case 9 : case 10 : case 11 : System . out . println ( " AUTUMN " ) ; break ; default : System . out . println ( " Invalid ▁ Month ▁ number " ) ; break ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (switch_expression condition: (parenthesized_expression (identifier)) body: (switch_block (switch_block_statement_group (switch_label (decimal_integer_literal))) (switch_block_statement_group (switch_label (decimal_integer_literal))) (switch_block_statement_group (switch_label (decimal_integer_literal)) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (break_statement)) (switch_block_statement_group (switch_label (decimal_integer_literal))) (switch_block_statement_group (switch_label (decimal_integer_literal))) (switch_block_statement_group (switch_label (decimal_integer_literal)) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (break_statement)) (switch_block_statement_group (switch_label (decimal_integer_literal))) (switch_block_statement_group (switch_label (decimal_integer_literal))) (switch_block_statement_group (switch_label (decimal_integer_literal)) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (break_statement)) (switch_block_statement_group (switch_label (decimal_integer_literal))) (switch_block_statement_group (switch_label (decimal_integer_literal))) (switch_block_statement_group (switch_label (decimal_integer_literal)) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (break_statement)) (switch_block_statement_group (switch_label) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (break_statement))))))