$ javac Increment.java
Output:
Increment.java:6: ??: ?????
System.out.println(++a++);
^
??: ??
??: ?
1 ???
here is the code
class Increment{
public static void main(String[] args) {
int a = 5;
System.out.println(++a++);
}
}
Does any one know what may be happening and how to fix it? Increment is just a class for testing so that a error will appear. I am running it in git-bash terminal, but I have tried it in cygwin terminal and windows's terminal as well. character-set is UTF-8.