wiki:jazz/09-07-06

Version 3 (modified by jazz, 15 years ago) (diff)

--

2009-07-06

  • Java 教學
    • 下載 JDK 6 文件
    • 下載 JDK 6
    • Java Tutorial
      // 存為 Test.java
      import java.io.*;
      import java.lang.String;
      
      public class Test
      {
        public String myData;
      
        public String getMyData()
        {
          return myData;
        }
      
        public void setMyData(String data)
        {
          myData = new String(data);
        }
      
        public static void main(String args[]) {
          Test myTest = new Test();
          myTest.setMyData("This is a test");
          System.out.print(myTest.getMyData());
        }
      }
      

Attachments (1)

Download all attachments as: .zip