2013年1月26日 星期六

String與基本資料型態之間的轉換(轉貼)

java的字串處理功能很強大,但我總是會忘記
這次找到資料以後,還是記錄起來吧
基本上有兩種作法
int intValue = Integer.valueOf  &  int intValue = Integer.parseInt