mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
10 lines
376 B
Java
10 lines
376 B
Java
// "Fix all ''compare()' method can be used to compare numbers' problems in file" "true"
|
|
public class Test {
|
|
public int test(String s1, String s2) {
|
|
int res = new Integer(s1.length()).co<caret>mpareTo(s2.length());
|
|
if(res == 0) {
|
|
res = new Character(/*reverse order!*/s2.charAt(0)).compareTo(s1.charAt(0));
|
|
}
|
|
return res;
|
|
}
|
|
} |