Why the ouput of this code is: -32? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

Why the ouput of this code is: -32?

Why the ouput of this code is: -32? String str1 = "JAVA"; String str2 = "java"; Int n = str1.compareTo(str2); System.out.print(n);

27th Aug 2018, 11:32 AM
Luis Felipe Arroyave Valencia
Luis Felipe Arroyave Valencia - avatar
1 Réponse
27th Aug 2018, 12:19 PM
Mert Yazıcı
Mert Yazıcı - avatar