private static long [ ] nextCount ( int [ ] rate , long [ ] count ) {
  int r0 = rate [ 0 ] ;
  int r1 = rate [ 1 ] ;
  long n = Math . max ( ( count [ 0 ] + r0 - 1 ) / r0 , ( count [ 1 ] + r1 - 1 ) / r1 ) ;
  count [ 0 ] = r0 * n ;
  count [ 1 ] = r1 * n ;
  return count ;
}

private static long [ ] nextCount ( int [ ] rate , long [ ] count ) { int r0 = rate [ 0 ] ; int r1 = rate [ 1 ] ; long n = Math . max ( ( count [ 0 ] + r0 - 1 ) / r0 , ( count [ 1 ] + r1 - 1 ) / r1 ) ; count [ 0 ] = r0 * n ; count [ 1 ] = r1 * n ; return count ; }
(method_declaration (modifiers) type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier)) (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (array_access array: (identifier) index: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (array_access array: (identifier) index: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (identifier)) right: (decimal_integer_literal))) right: (identifier)) (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (identifier)) right: (decimal_integer_literal))) right: (identifier)))))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (decimal_integer_literal)) right: (binary_expression left: (identifier) right: (identifier)))) (return_statement (identifier))))