java----int,string 转化为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 = a.longValue();