目錄
簡介
安裝
建立專案
Hello, World!
基本輸出
變數類型
全域變數
局域變數
運算子
算術運算子
邏輯運算子
常用變數方法
隨機、次方
轉型(變數互轉、字串與算術變數轉換)
基本輸入
Scanner
條件式
if, else, else if
switch
迴圈式
for
while, do-while
無窮迴圈
break, continue
模糊化程式設計-方法(Method)
建立方法
return
呼叫方法
字串(String)
字串方法
字串緩衝器(StringBuffer)
陣列(Array)
宣告
一維、二維陣列
ArrayList
類別(Class)-基礎
成員變數、成員方法
使用類別
資訊隱藏(Private)、資訊公開(Public)、資訊保護(protected)
過載(Overload)
this
類別(Class)-進階
繼承(Inheritance)
抽象(abstract)
多形(Polymorphism)
巢狀類別
介面(Interface)
套件(API)
例外處理(Exception)
try, catch, finally
內建例外
自訂例外
視窗程式設計
傾聽者(Listener)
視窗程式設計-低階事件
滑鼠事件
鍵盤事件
視窗程式設計-語意事件
按鈕、文字 JButton, JLabel
選項鈕 JRadioButton
彈出式選單 JPopupMenu
下拉式選單 JMenuBar, JMenu, JMenuItem
檔案處理
檔案讀取與寫入
繪圖與多媒體
基礎幾何圖形繪製與文字樣式
圖片的載入與顯示
Timer
網路程式設計
Server與Client的互動