目前分類:Java (9)
- Mar 12 Sat 2005 13:11
Java 技術論壇
- Mar 12 Sat 2005 13:09
[Java]史帝芬心得筆記
- Mar 11 Fri 2005 12:25
About Java Assertion
Assertion 是新版 SCJP 考題增加的項目,這東西其實跟 Exception 有點相似
然而它是屬於 java.lang.Error 的東西
我只是介紹他在程式碼中的使用方法
- Aug 10 Tue 2004 22:58
用UltraEditor compile java program
大家應該都知道UltraEditor是強大的文字編輯器,
不過開了Java檔修改完後,常常又會另外去開cmd視窗來compile java
(當然,我指的是在不使用Java IDE的情況下,話說回來,有時為了test一個小小的Java程式而開IDE還挺麻煩的)
其實,如果你已經有安裝了JDK而且設定好classpath的話,
- Aug 07 Sat 2004 01:25
[Java] top-level class?inner class?
[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.
- Jul 31 Sat 2004 01:38
[Java] 測試你的Java功力
- Jul 29 Thu 2004 19:52
[Java]實作Java FileFilter 類別
Java FileFilter是abstract class,所以必須自己實做methods,詳細API可參考Class FileFilter
可以提供JFileChooser物件來過濾指定的檔案類型,實作可參考How to Use File Choosers
範例程式如下:
/* MyFileFilter.java */
- Jul 29 Thu 2004 12:45
[Java]無聊寫的Java小程式(倒數計時)
/*
* An example program for count down seconds.
*
* @author: Calvin Feng.
* @date: 2004/07/26
- Jul 13 Tue 2004 12:48
Java I/O
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