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

It takes Serina 1.81 hours to drive to school. Her route is 36 km long. What is Serina's average speed on her drive to school?
DCC DEFINITION IN SOCIAL​
Help !!!!!!!!!!!!!!!
The most important quality in an employee is not specific knowledge or technical competence. Instead, it is the ability to work hard well with other employees
air can be polluted by __. a. tiny particles of soot b. carbon monoxide c. sulfuric acid d. all of the above answer quick !!
Reasons for looting ​
PLEASE HELP!!!! 100 POINTS AND BRANLISIT ​
What island is located at 5° 52' 42" N, 162° 4' 8" W?
What is the kinetic energy of a bicycle with a mass of 16 kg traveling at a velocity of 5 m/s
What is most likely Mr.White’s final wish