Computer Science, asked by atanupal196133, 5 months ago

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 Suryavardhan1
1

Answer:

AMIT

Explanation:

x.compareTo.y = 1

1>0

print x

Similar questions