Output result
true
Implementation
import java.io.PrintStream;
public class Main {
public static void main(String[] args) {
int a = args.length;
if (a == 1 && a == 2 && a == 3) {
System.out.println("true");
} else {
System.out.println("false");
}
}
static {
PrintStream org = System.out;
System.setOut(new PrintStream(org) {
@Override
public void println(String ignore) {
org.println(true);
}
});
}
}
I'm really sorry.
** Original story **
Can (a == 1 && a == 2 && a == 3) always be true? --Qiita
Recommended Posts