![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
小飞侠xi
IT菜鸟学习笔记
展开
-
string int 转化为long
字符串转化为longlongage= Long.parseLong(str);int转化为longLong age =new Long((long)agecheck);原创 2021-10-08 14:17:15 · 123 阅读 · 0 评论 -
int转化为long
String:1.返回Long包装类型:String str = "aaa";long l = Long.parseLong([str]);2.返回long基本数据类型:String str = "aaa";long l = Long.valueOf("str").longValue();int :1.返回long基本数据类型:int a = 1;long b = (int)a;2.返回Long包装类型:int a = 1;Long b ...转载 2021-09-24 13:56:45 · 14598 阅读 · 2 评论