- 1
Rearrange the code to declare a method returning the greater of the two arguments. return a; } public int max(int a, int b) { }
Rearrange the code to declare a method returning the greater of the two arguments. return a; } public int max(int a, int b) { } if (a > b) { return b; Unlock
5 Respostas
+ 5
public int max(int a, int b) {
if (a > b) {
return a; }
return b;
}
+ 1
public int max(int a ,int b ) {
if(a>b){
return a ; }
return b ;
}
0
Help me out
- 1
help me out
- 1
public int max(int a, int b){
if(a>b){
return a;
}
return b;
/* If you don't understand, ask ! */