static boolean squareRootExists ( int n , int p ) {
  if ( power ( n , ( p - 1 ) / 2 , p ) == 1 ) return true ;
  return false ;
}

static boolean squareRootExists ( int n , int p ) { if ( power ( n , ( p - 1 ) / 2 , p ) == 1 ) return true ; return false ; }
(method_declaration (modifiers) type: (boolean_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (method_invocation name: (identifier) arguments: (argument_list (identifier) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (decimal_integer_literal)) (identifier))) right: (decimal_integer_literal))) consequence: (return_statement (true))) (return_statement (false))))