天天看點

java類型轉換函數

string->byte

byte static byte parsebyte(string s) 

byte->string 

byte static string tostring(byte b) 

char->string 

character static string to string (char c) 

string->short 

short static short parseshort(string s) 

short->string 

short static string tostring(short s) 

string->integer 

integer static int parseint(string s)

integer->string 

integer static string tostring(int i) 

string->long 

long static long parselong(string s) 

long->string 

long static string tostring(long i) 

string->float 

float static float parsefloat(string s) 

float->string 

float static string tostring(float f) 

string->double 

double static double parsedouble(string s)

double->string

double static string tostring(double d) 

<a href="http://song-j.iteye.com/blog/310693">原文連結</a>

本文版權歸作者所有,歡迎轉載,但未經作者同意必須保留此段聲明,且在文章頁面明顯位置給出原文連接配接,否則保留追究法律責任的權利。

轉載:http://www.cnblogs.com/kissazi2/archive/2012/07/04/2575923.html