3/04/2012

筆記用法

想要找個地方做做筆記 或是做做實驗
也不知道這筆記會活多久就是了..=.=
class test{
     static int iValue = 0;
     public test() {
     }
}
public class main {
     public static void main(String[] argv)  {
          test test1 = new test();
          test test2 = new test();
          System.out.println(test1.iValue);
          test2.iValue  = 10;
          System.out.println(test2.iValue);
          System.out.println(test1.iValue);
     } 
}


沒有留言:

張貼留言