網頁

2013年10月2日 星期三

[Android 程式] 整數轉換成字串、字串轉換成整數

整數轉換成字串
String x1=Integer.toString(123);
String 
x1 = String.valueOf(123);String x1 = new String(123);



字串轉換成整數
int intV = Integer.valueOf("123");
int intV = Integer.parseInt("123");

沒有留言:

張貼留言

影片的問題請留在影片的留言區裡。
部落格不會另外通知給我,所以很難發現你有留言。