目录
叹咖啡.................................................................................................................................................4
一、序言.....................................................................................................................................4
二、什么是 Java.........................................................................................................................5
三、诱人的 Java 技术................................................................................................................6
四、Java 语言的优势.................................................................................................................9
五、小结...................................................................................................................................13
第一杯咖啡.......................................................................................................................................14
一、序言...................................................................................................................................14
二、搭建 Java 开发环境(1).....................................................................................................15
三、搭建 Java 开发环境(2).....................................................................................................17
Eclipse...............................................................................................................................................20
一、序言...................................................................................................................................20
二、Eclipse 的历史..................................................................................................................21
三、Eclipse 的构架..................................................................................................................22
四、开放源代码.......................................................................................................................23
五、丰富的扩展资源...............................................................................................................23
六、Eclipse 的获取与安装......................................................................................................23
七、小结...................................................................................................................................26
品味第一杯咖啡...............................................................................................................................27
一、注释与文档.......................................................................................................................27
二、类.......................................................................................................................................31
三、main 方法..........................................................................................................................31
四、使用类和对象...................................................................................................................32
五、小结...................................................................................................................................33
Java 语言基础...................................................................................................................................34
一、黄蓉难倒瑛姑的数学题...................................................................................................34
二、Java v.s. 神算子(1)............................................................................................................34
二、Java v.s. 神算子(2)............................................................................................................37
三、阳春白雪...........................................................................................................................39
四、小结...................................................................................................................................40
编写猜数字游戏...............................................................................................................................42
一、猜数字游戏.......................................................................................................................42