What is the string equivalent of the Math class in java?

eg something like return Instructional math.max(int max1, int max2); nonetheless for strings
i want to get the max size of a couple of strings

like this
school Example

Stringed max(String s1, Stringed s2)

if(s1.length()>s2.length())
returning s1;
else
returning s2;

Leave a Reply