Код: Выделить всё
public class Main {
public static void main(String[] args) {
int x = 5;
int y = 10;
x = (y += (x += (y += x)));
System.out.println("x: " + x + ", y: " + y);
}
}
Источник: https://stackoverflow.com/questions/781 ... ting-in-30
Код: Выделить всё
public class Main {
public static void main(String[] args) {
int x = 5;
int y = 10;
x = (y += (x += (y += x)));
System.out.println("x: " + x + ", y: " + y);
}
}