static boolean bitsAreInAltOrder ( int n ) {
  int num = n ^ ( n >>> 1 ) ;
  return allBitsAreSet ( num ) ;
}

static boolean bitsAreInAltOrder ( int n ) { int num = n ^ ( n >>> 1 ) ; return allBitsAreSet ( num ) ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal)))))) (return_statement (method_invocation name: (identifier) arguments: (argument_list (identifier))))))