mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 18:50:59 +07:00
18 lines
515 B
Java
18 lines
515 B
Java
// "Fix all ''compare()' method can be used to compare numbers' problems in file" "true"
|
|
class Test {
|
|
public void test(String s1, String s2) {
|
|
int res;
|
|
i<caret>f(s1.length() < s2.length()) res = 1;
|
|
else if(s1.length() > s2.length()) res = -1;
|
|
else res = 0;
|
|
System.out.println(res);
|
|
}
|
|
|
|
public void testMissingElse(String s1, String s2) {
|
|
int res;
|
|
if(s1.length() < s2.length()) res = 1;
|
|
else if(s1.length() > s2.length()) res = -1;
|
|
res = 0;
|
|
System.out.println(res);
|
|
}
|
|
} |