angSalgebleLeuh1 angSalgebleLeuh1
  • 20-03-2017
  • Computers and Technology
contestada

Write a method min that has three string parameters and returns the smallest.

Respuesta :

TheOneDude123
TheOneDude123 TheOneDude123
  • 20-03-2017
public String min (String aString, String bString, String cString)
{
if(aString.compareTo(bString)<0 && aString.compareTo(cString)<0)
{
return aString
}
else if (bString.compareTo(cSgtring)<0 && bString.compareTo(aString)<0
{
return bString;
}
else 
{
return cString;
}
}
Answer Link

Otras preguntas

What is 809 times 17 using standard algorithm? show your work
if an object turns but maintains the same speed,has its acceleration changed?explain
Which other composer,besides Mendelssohn,also grew up with an older sister who was a very good pianist?
A sporting goods store charges $30 for 12 cans of tennis balls and $45 for two boxes of golf balls. A coach orders 100 cans of tennis balls and 5 boxes of golf
1.)Irvin cut a 47 in. wire into two pieces. The longer piece is 13 in. longer than the shorter piece. What is the length of the longer piece? 2.) Maggie has onl
What are the constituent elements of the blood?
Which other composer,besides Mendelssohn,also grew up with an older sister who was a very good pianist?
Life for the average ancient Egyptian was carefree and easy. A YES B NO
I NEED HELP who is the mayor of Chicago Illinois
PLEASE HELP I GIVE THANKS