Question: You compare two strings s 1 and s 2 using _ _ _ _ _ _ _ _ . compare ( s 1 , s

You compare two strings s1 and s2 using ________.
compare(s1, s2)
s1.compare(s2)
compareTo(s1, s2)
s1.compareTo(s2)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!