The Java spec says this: Another approach would be to declare i and j to be volatile: class Test {   static volatile int i = 0, j = 0;
確定! 回上一頁