Posts by João Dias • 31 points
1 post
-
3
votes1
answer805
viewsQ: Doubt with the function compareTo
When I run the code below the compareTo returns a value less than zero. public class compare { public static void main ( String [] args ) { String str1 = "araraaaaaa"; String str2 = "asa"; int comp…