fork download
  1. class Bla {
  2. static int x = 0;
  3.  
  4. static void f(int arg) {
  5. System.out.println("f was called with the argument " + arg + " and the value of x is " + x);
  6. }
  7.  
  8. public static void main(String[] args) {
  9. f(x++);
  10. }
  11. }
  12.  
Success #stdin #stdout 0.11s 36056KB
stdin
Standard input is empty
stdout
f was called with the argument 0 and the value of x is 1