public static boolean prime ( int n ) {
  switch ( n ) {
    case 2 : return true ;
    case 3 : return true ;
    case 5 : return true ;
    case 7 : return true ;
    default : return false ;
  }
}

public static boolean prime ( int n ) { switch ( n ) { case 2 : return true ; case 3 : return true ; case 5 : return true ; case 7 : return true ; default : return false ; } }
(method_declaration (modifiers) type: (boolean_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)) (return_statement (true))) (switch_block_statement_group (switch_label (decimal_integer_literal)) (return_statement (true))) (switch_block_statement_group (switch_label (decimal_integer_literal)) (return_statement (true))) (switch_block_statement_group (switch_label (decimal_integer_literal)) (return_statement (true))) (switch_block_statement_group (switch_label) (return_statement (false)))))))