mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-30 01:20:53 +07:00
20 lines
466 B
Java
20 lines
466 B
Java
// "Invert 'if' condition" "true"
|
|
class B {
|
|
public static void foo() {
|
|
for (int i = 0; i < 10; i++) {
|
|
if (i % 2 == 0) {
|
|
if (i != 0) {
|
|
System.out.println("!= 0");
|
|
continue;
|
|
}
|
|
else {
|
|
System.out.println("== 0");
|
|
continue;
|
|
}
|
|
|
|
}
|
|
|
|
System.out.println("i = " + i);
|
|
}
|
|
}
|
|
} |