fork download
  1. class unarayExample
  2. {
  3. public static void main (String args[])
  4. {
  5. int a = 10;
  6. system out println("value of the a:(a++ inline)" +++a);
  7. system out println("value of the a:(a++ after)" +a);
  8.  
  9. a=10;
  10. system out println("value of the a:(++a inline)" +a++);
  11. system out println("value of the a:(++a after)" +a);
  12. }
  13. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:6: ';' expected
system out println("value of the a:(a++ inline)" +++a);
          ^
Main.java:7: ';' expected
system out println("value of the a:(a++ after)" +a);
          ^
Main.java:10: ';' expected
system out println("value of the a:(++a inline)" +a++);
          ^
Main.java:11: ';' expected
system out println("value of the a:(++a after)" +a);
          ^
4 errors
stdout
Standard output is empty