在这个简单的程序中我不能返回2个整数值,你能帮帮我吗?我能怎么做 ?
public class Aritmetica
{
public static int div(int x , int y)
{
int q = 0 ;
int r = x ;
while ( r >= y )
{
r = r - y ;
q = q + 1 ;
}
return r && q; **// Here i want to return x and y**
}
public static void main(String[ ] args)
{
if ( ( x <=0 ) & ( y > 0 ) )
throw …Run Code Online (Sandbox Code Playgroud)