目前分類:Java (9)

瀏覽方式: 標題列表 簡短摘要
http://www.javaworld.com.tw/jute/
有非常豐富的Java相關技術討論

iceis 發表在 痞客邦 留言(0) 人氣()

史帝芬心得筆記
有許多關於Java不錯的文章

iceis 發表在 痞客邦 留言(1) 人氣()

http://www.javaworld.com.tw/jute/post/view?bid=17&id=9017&sty=1&tpg=1&age=0

Assertion 是新版 SCJP 考題增加的項目,這東西其實跟 Exception 有點相似
然而它是屬於 java.lang.Error 的東西
我只是介紹他在程式碼中的使用方法

iceis 發表在 痞客邦 留言(0) 人氣()

大家應該都知道UltraEditor是強大的文字編輯器,
不過開了Java檔修改完後,常常又會另外去開cmd視窗來compile java
(當然,我指的是在不使用Java IDE的情況下,話說回來,有時為了test一個小小的Java程式而開IDE還挺麻煩的)

其實,如果你已經有安裝了JDK而且設定好classpath的話,

iceis 發表在 痞客邦 留言(1) 人氣()

SJCP Exam Preparation:Top-level and Inner Classes

[from the page]One of the Sun Certified Java Programmer (SJCP) Exam's objectives is to declare and construct any kind of class, including top-level, nested top-level, and inner classes. You are obviously going to be asked questions about this in the exam. I will elaborate on this exam objective in detail, with the support of examples and code snippets. You will then have a correct understanding of top-level, nested top-level, and inner class concepts and will be able to solve every question that is related to this exam objective.

iceis 發表在 痞客邦 留言(0) 人氣()

http://test.javaranch.com/game2.html
英文的囉...不過應該都看的懂:)

iceis 發表在 痞客邦 留言(0) 人氣()

Java FileFilter是abstract class,所以必須自己實做methods,詳細API可參考Class FileFilter
可以提供JFileChooser物件來過濾指定的檔案類型,實作可參考How to Use File Choosers

範例程式如下:
/* MyFileFilter.java */

iceis 發表在 痞客邦 留言(0) 人氣()

/*
* An example program for count down seconds.
*
* @author: Calvin Feng.
* @date: 2004/07/26

iceis 發表在 痞客邦 留言(2) 人氣()

http://my.so-net.net.tw/idealist/Java/IO.html
Abstract:Java將I/O分為高階I/O與低階I/O,高階I/O在使用上提供更多的讀寫方法,如讀寫int、double、String的資料型態,而低階的I/O大部份只提供write、read的byte[]存取,因為程式大部份的資料都是以字串或其它主要型態資料來運算,因此低階的I/O在使用上不利於程式設計,所以Java將許多好用的方法全部集合成高階I/O; 換言之,低階I/O的主要工作是負責與媒體資料作存取,高階I/O類別主要作資料型態的轉換及提供一些特殊的功能。在使用Java I/O時要謹記的一個重要原則是,在建立一個I/O之前必需先用低階I/O類別來存取媒體資料(如檔案或pipe),之後再使用高階I/O來控制低階I/O類別的動作,這種一層又一層的架構稱I/O Chain

iceis 發表在 痞客邦 留言(0) 人氣()