Commit 578766b8 authored by uwdkn's avatar uwdkn

Apply review

parent b9d47d46
class A {
public static void main(String[] args) {
System.out.println(2 - 1); // 1
System.out.println(4 / 2); // 2
System.out.println(1 + 2); // 3
System.out.println(2 * 2); // 4
System.out.println(11 % 6); // 5
System.out.println(2 - 1); /* 1 */
System.out.println(4 / 2); /* 2 */
System.out.println(1 + 2); /* 3 */
System.out.println(2 * 2); /* 4 */
System.out.println(11 % 6); /* 5 */
if (false || true) { System.out.println(6); }
if (true || false) { System.out.println(7); }
......
class A {
public boolean side_effect() {
System.out.write(70); //
System.out.write(10); // newline
System.out.write(70); /* F */
System.out.write(10); /* newline */
return false;
}
public static void main(String[] args) {
A a = new A();
if (true || a.side_effect()) {
System.out.write(79); // O
System.out.write(75); // K
System.out.write(10); // newline
System.out.write(79); /* O */
System.out.write(75); /* K */
System.out.write(10); /* newline */
}
if (false && a.side_effect()) {
} else {
System.out.write(79); // O
System.out.write(75); // K
System.out.write(10); // newline
System.out.write(79); /* O */
System.out.write(75); /* K */
System.out.write(10); /* newline */
}
if (!(false && a.side_effect())) {
System.out.write(79); // O
System.out.write(75); // K
System.out.write(10); // newline
System.out.write(79); /* O */
System.out.write(75); /* K */
System.out.write(10); /* newline */
}
if ((true || a.side_effect()) && true) {
System.out.write(79); // O
System.out.write(75); // K
System.out.write(10); // newline
System.out.write(79); /* O */
System.out.write(75); /* K */
System.out.write(10); /* newline */
}
}
}
eass A {
class A {
public static void main(String[] args) {
int x = 8;
int y = x = 4;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment