wmm15738807386
int i;
String s="134";
1)String转换成int
i=Integer.parseInt(s);
2)int转换成String(其他类型转String,都可以使用toString()方法)
s=i.toString()
3)String转double
double d=Double.parseDouble(s);

分类:

技术点:

相关文章:

  • 2020-01-09
  • 2020-07-11
  • 2021-12-10
  • 2021-10-16
  • 2021-08-09
  • 2021-10-16
  • 2021-11-06
  • 2021-10-08
猜你喜欢
  • 2019-07-10
  • 2020-07-13
  • 2021-09-13
  • 2021-09-27
  • 2021-10-16
  • 2021-11-06
  • 2021-10-20
相关资源
相似解决方案