转自:https://www.cnblogs.com/feifeicui/p/8390604.html
(1)
long id = 100l;
String str = aa + "";
(2)
long id = 100l;
Long longObj = new Long(id);
String str = longObj.toString();
1.java中如何将string 转化成long
long l = Long.parseLong([String]);
或
long l = Long.parseLong([String],[int radix]);
long l = Long.valueOf("123").longValue();
2.Long.ValueOf("String")与Long.parseLong("String")的区别
Long.ValueOf("String")返回Long包装类型
Long.parseLong("String")返回long基本数据类型