<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>tyson記事本 &#187; JAVA</title>
	<atom:link href="http://blog.tcchen.org/archives/category/4dev/java/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.tcchen.org</link>
	<description>Google &#38; man(Unix) are your best friends!</description>
	<lastBuildDate>Thu, 16 Apr 2009 04:33:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>JAVA 測試 String物件時間</title>
		<link>http://blog.tcchen.org/archives/21</link>
		<comments>http://blog.tcchen.org/archives/21#comments</comments>
		<pubDate>Fri, 12 Jan 2007 09:13:26 +0000</pubDate>
		<dc:creator>tyson</dc:creator>
				<category><![CDATA[JAVA]]></category>

		<guid isPermaLink="false">http://blog.tcchen.org/archives/21</guid>
		<description><![CDATA[ref: http://www.javaworld.com.tw/jute/post/view?bid=29&#038;id=9557



public class Test{
public static void main(String[] args){
new Test();
}

public Test(){
System.out.println("normal converting (ms): " + normal());
System.out.println("algorithm converting (ms): " + algo());
}

public long normal(){
int a = 0;
String b = null;
long st = System.currentTimeMillis();
for (int i = 0; i < 2000000; i++){
b = a + "";
}
long et = System.currentTimeMillis();
return (et - st);
}

public long algo(){
int a = 0;
String b [...]]]></description>
		<wfw:commentRss>http://blog.tcchen.org/archives/21/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>String與基本資料型態(int byte&#8230;等)之間的轉換</title>
		<link>http://blog.tcchen.org/archives/20</link>
		<comments>http://blog.tcchen.org/archives/20#comments</comments>
		<pubDate>Fri, 12 Jan 2007 09:12:12 +0000</pubDate>
		<dc:creator>tyson</dc:creator>
				<category><![CDATA[JAVA]]></category>

		<guid isPermaLink="false">http://blog.tcchen.org/archives/20</guid>
		<description><![CDATA[ref: http://www.javaworld.com.tw/jute/post/view?bid=29&#038;id=9557
轉錄自java連線版
發信人: TAHO, 看板: java 精華區
標 題: String與基本資料型態(int byte&#8230;等)之間的轉換
發信站: 140.126.22.6 竹師風之坊
Origin: Local
String與基本資料型態(int byte&#8230;等)之間的轉換
1. 由 基本資料型態轉換成 String
String 類別中已經提供了將基本資料型態轉換成 String 的 static 方法
也就是 String.valueOf() 這個參數多載的方法
有下列幾種
String.valueOf(boolean  b) : 將 boolean 變數 b 轉換成字串
String.valueOf(char c) : 將 char 變數 c 轉換成字串
String.valueOf(char[] data) : 將 char 陣列 data 轉換成字串
String.valueOf(char[] data, int offset, int count) :
將 char 陣列 data  [...]]]></description>
		<wfw:commentRss>http://blog.tcchen.org/archives/20/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
