Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: qualifying with volatile is illegal; but I changed it to final

...

Code Block
bgColor#ccccff
class Test {
  static volatile long i = 0;
  static void one(volatilefinal long j) { i = j; }
  static void two() {
    System.out.println("i =" + i);
  }
}

...