0
点赞
收藏
分享

微信扫一扫

int类型转换为string类型


int i=1;    String str="";

第一种方法:s = i+"";
第二种方法:str = String.valueOf(i);

 


举报

相关推荐

0 条评论