PIXNET Logo登入

pcwiki的部落格

跳到主文

歡迎光臨pcwiki在痞客邦的小天地

部落格全站分類:數位生活

  • 相簿
  • 部落格
  • 留言
  • 名片
  • 11月 10 週六 201216:42
  • JAVA SCJP 05

public class ISOtream1 {
public static void main(String[] args) {
<?> out = null;
try {
out = new <?>(new <?>(<?>));
out.<?>("would");
out.close();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
(繼續閱讀...)
文章標籤

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

  • 個人分類:SCJP 6.0
▲top
  • 11月 10 週六 201216:20
  • JAVA SCJP 04

public class Forest {
public static void main(String[] args){
DateFormat df = new DateFormat() {
@Override
public java.util.Date parse(String source, ParsePosition pos) {
// TODO Auto-generated method stub
return null;
}
@Override
public StringBuffer format(java.util.Date date, StringBuffer toAppendTo,
FieldPosition fieldPosition) {
// TODO Auto-generated method stub
return null;
}
};
Date date=new Date();
df.setLocale(Local.Ialy);
}
}
(繼續閱讀...)
文章標籤

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

  • 個人分類:SCJP 6.0
▲top
  • 11月 10 週六 201215:55
  • 03

public class Forest {
public static void main(String[] args){
String test = "This is a test";
String[] tokens = test.split("\s");
System.out.println(tokens.length);
}
}
(繼續閱讀...)
文章標籤

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

  • 個人分類:SCJP 6.0
▲top
  • 11月 10 週六 201215:34
  • 02

題目:
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
(繼續閱讀...)
文章標籤

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

  • 個人分類:SCJP 6.0
▲top
  • 11月 10 週六 201214:45
  • 01

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.ObjectOutputStream;

public class Forest {
private Tree tree = new Tree();
public static void main(String[] args){
Forest f = new Forest();
try {
FileOutputStream fs = new FileOutputStream("Forest.ser");
ObjectOutputStream os = new ObjectOutputStream(fs);
os.writeObject(f);
os.close();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
class Tree{}
(繼續閱讀...)
文章標籤

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

  • 個人分類:SCJP 6.0
▲top
1

個人資訊

pcwiki
暱稱:
pcwiki
分類:
數位生活
好友:
累積中
地區:

熱門文章

  • (1,893)Android 新手上路 安裝系統(linux, Android, eclipse, ADT)
  • (4,214)IBM DB2 Oracle MS SQL 的比較
  • (1,023)0707(3)_java輸出入與迴圈
  • (266)[轉][mysql]can't connect to MySQL Server
  • (11,457)[轉]解決javac編譯時中文編碼警告的問題
  • (221)[轉] WampServer php mysql 集成包 多國語
  • (18,128)[轉] WampServer 用自已電腦架站
  • (660)[轉] Android - 取得WIFI相關資訊
  • (8,715)[轉] Java - String.getBytes()的中文編碼問題 亂碼 中文
  • (1,043)[轉] 解决Excel数据导入sqlite中的中文乱码问题 亂碼 execl sql

文章分類

toggle IOS (1)
  • IOS (42)
  • 伺服器+資料庫 (7)
  • SCJP 6.0 (5)
  • Android軟體 (9)
  • Android影片教學 (5)
  • Android新聞 (8)
  • Android教學 (104)
  • linux (1)
  • 未分類文章 (1)

最新文章

  • [旅遊] 日本-大阪
  • [旅遊] 台中
  • [旅遊] 高雄
  • [旅遊] 苗栗
  • 工程師心得
  • ios core data database sample 範本 加入core data
  • 類似 Observer Pattern 的 NSNotificationCenter ios 訊息處理 觀察者模式
  • ios in-app purchase flow 流程 程式內購買 開發 詳細 教程
  • ios iRate 第三方 投票 評等 評分 評價 開發 應用程式 app
  • ios 更改 顯示名稱 本地化 多國語言

文章精選

文章搜尋

誰來我家

參觀人氣

  • 本日人氣:
  • 累積人氣: