Eric Steven Raymond is the granddaddy of today’s hackers, a man who revels in living the life in all its geeky glory. According to him, "The world is full of fascinating problems waiting to be solved." Annoyed by the fact that most people misuse the
閉月羞花貓 2007/11/27 於南京新城需求描述: 在讀取一本UTF-8編碼的文字文件,將其中的內容轉換成Shift_jis編碼,如果遇到 ~、① 之類不屬於Shift_jis的字元,用特殊符號代替,無視,報錯。代碼: public static String checkIsSjis(String inString) { // Create the encoder and decoder for the character encoding Charset
######################################################################## I love Linux! I love technical! I love programming! I wanna to be a hacker.I'm attracted by their sprite. So my computer has Linux running in it.It
web-harvest 是啥就不做介紹了,採集火影漫畫的裡面有下載連結。http://blog.csdn.net/wind_324/article/details/6271412範例抓取的是郭敬明的《1995-2005夏至未至》,簡單看了下其他書籍的格式,基本上可以通用採集book.qq.com(未測試)。廢話少說,下面看設定檔。<?xml version="1.0" encoding="GB2312"?><!-- Extract novel "Rush to the
//設計一個簡單的日期類Date,然後編寫一個主程式示範該類的用法,日期有不同的顯示格式,//例如設yyyy、mm、dd分別表示年、月、日,則我們常用的格式是yyyy.mm.dd,美國常用的是//mm/dd/yyyy,歐洲常用的格式是dd-mm-yyyy.通常同一個程式中的多個日期對象會採用統一//的顯示格式.所以格式屬性應該定義一個待用資料成員./**auther starshus**Date 04/11/20*///5.8.2public class Date { private
//根據篩選法求出100以內的所有素數,所謂篩選法是指從小到大篩去一個以知素數的所有倍數,//例如,根據2我們可篩去4,6,8,...98,100等數.然後根據3可篩去9,15,...99等數(注意此時6,//12等數早就被篩去了),由於4被篩去了,下一個用於篩選的素數是5...依次類推,最後剩餘的就//是100以內的素數./**auther starshus**Date 04/11/20*///6.7.4public class Prime { private static final
public static void main(String[] args) throws MalformedPatternException { System.out.println(" a b c ".trim()); deleteFullSpace(" a b c "); } private static void deleteFullSpace(String testStr) { // ^[ *|