I\'m curious why this simple program could be compiled by java using IntelliJ (Java 7).
public class Main { public static void main(String[] args) {
10 is a literal not a variable. As such, 10 cannot be incremented.
++somevariable increments somevariable. ++variable -> increment operator. + + someliteral will just equate to someliteral. + + literal -> successive unary + operator