ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

snippet

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • snippet

    Static { int a = 10;}
    Static int a,b;
    Public static void main(?)
    { a--;
    Demo();
    System.out.println(a+b);
    }
    Public static void demo()
    { b = a++;}

    Please let me know the result for the above code snippet.
Working...
X