fork download
  1. interface MyInter{
  2. public static final int VAL= 3;
  3. void foo(int s);
  4. }
  5.  
  6. class Test implements MyInter{
  7. public static void main (String[] args){
  8. int x = 5;
  9. new Test().foo(++x);
  10. }
  11. public void foo(int s){
  12. s += VAL + ++s;
  13. System.out.println("s: "+ s);
  14. }
  15. }
Success #stdin #stdout 0.12s 53628KB
stdin
Standard input is empty
stdout
s: 16