void test4(String x,String y)
{
if(x.compareTo(y)>0)
System.out.println(x);
else
System.out.println(y);
}
If "AMIT" and "AMAN" are passed to the function
Answers
Answered by
1
Answer:
AMIT
Explanation:
x.compareTo.y = 1
1>0
print x
Similar questions
Social Sciences,
2 months ago
Math,
2 months ago
Science,
5 months ago
Environmental Sciences,
5 months ago
Chemistry,
11 months ago
English,
11 months ago