Skip to content

Instantly share code, notes, and snippets.

@mcs
Last active May 11, 2018 10:18
Show Gist options
  • Save mcs/a6e7e0db1e7fa37e5e14ecc9af7e33ba to your computer and use it in GitHub Desktop.
Save mcs/a6e7e0db1e7fa37e5e14ecc9af7e33ba to your computer and use it in GitHub Desktop.
public static void main(String[] args) {
int a = 10;
if ((a == 10) && (a += 20) == 30) {
System.out.println("a = " + a); // should print 30
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment