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

A student said that the sum of the measures of a pair of adjacent angles must equal 180 degrees. Is the student correct?
An internet company charges its customers in the following way. The internet is free for the first five hours each month and then is charged at a rate of 10 cen
what is the word or phrase that belong to tactile?​
Holly walks on a bearing of 115° until she is 1 km east of her starting point How far south of her starting point is she now?
Find the equation of the straight line that passes through the points (1, 10) and (3, 2) ANSWER ASAP
12+16(5×10)÷20-2=What is the answer ?​
What is the conjugation of conocer in the preterite tense?
Find the volume and surface area of the cone (to the nearest tenth)
What is the difference between a bar chart and a histogram?
5. A bathtub holds 75 000 mL of water. How many liters of water does the bathtub hold?