1 / 18

物件導向程式設計

物件導向程式設計. 數學系 ‧ 冷輝世. 軟體安裝與環境變數的設定. 軟體安裝 J2SE(JDK, Java Doc) JCreator 環境變數的設定 JAVA_HOME PATH ※ 啟動 JCreator 前先做好環境變數的設定. Java 程式基本架構. Java Application(Hello1.java) 編輯、編譯與執行 Hello1.java, Hello1.class Java Applet(Hello2.java) 編輯、編譯與執行 Hello2.java, Hello2.class, Hello2.htm

raya-chaney
Download Presentation

物件導向程式設計

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 物件導向程式設計 數學系‧冷輝世

  2. 軟體安裝與環境變數的設定 • 軟體安裝 • J2SE(JDK, Java Doc) • JCreator • 環境變數的設定 • JAVA_HOME • PATH ※啟動JCreator前先做好環境變數的設定

  3. Java程式基本架構 • Java Application(Hello1.java) • 編輯、編譯與執行 • Hello1.java, Hello1.class • Java Applet(Hello2.java) • 編輯、編譯與執行 • Hello2.java, Hello2.class, Hello2.htm ※各使用JCreator以及命令列兩種方式

  4. Java基礎(一):基本資料結構 • Java基本資料型態 • 各種基本資料型態的變數設定 • 各種基本資料型態的基本運算 • 資料型態的轉換 • Wrapper Class • 兩種亂數的使用 • Math類別 • java.util.*

  5. Java基礎(二):基本輸出入 • 基本輸出 • System.out.println() • 基本輸入 • 由鍵盤輸入(System.in) • 由指令列參數輸入(args[])

  6. Java基礎(三):基本流程控制 • 循序結構 • 選擇結構 • if… • if…else… • swtich …case • 重覆結構 • for • while • do…while • break, continue

  7. Java基礎(四):陣列 • 陣列的宣告 • 陣列的初值設定 • 一維陣列 • 二維陣列 • 多維陣列 • 排序

  8. Java基礎(五):類別與物件 • 類別 • Class Variable • Method • 物件 • Declaration • Creation • 修飾子(public, private, protected) • 建構元(Constructor) • 繼承(Inherit)

  9. Java基礎(六):多型化 • Polymorphism • Over-Loading • 建構元多載 • Over-Writing • 子類別方法覆載

  10. Abstract Class與Interface • Abstract Class • Class Variable • Method • Abstract Method • Interface • Finalize Class Variable • Abstract Method • 以Set為例,做交集與聯集

  11. Jar、Package、Import • Jar • jar cvfm ex.jar manifest.txt *.class • java –jar ex.jar • Package • Import ※注意manifest.txt的空格與空行,路徑的“/”方向

  12. Java字串處理 • String • StringBuffer • Regular Expressions

  13. Java檔案處理 • Text File • Binary File

  14. Java Swing • JFrame • Swing中的各項元件

  15. Java Swing Layout Management • Container • Float Layout • Grid Layout • 其它

  16. Java Swing Event-Handling • MVC(Model View Control) • Event Handling

  17. JDBC • JDBC範例

  18. Java Web Start • Web Server的相關設定 • JNLP

More Related