java-----Long转换为 int , string
int:
1、调用intValue()方法
long ll = 300000;
int ii= new Long(ll).intValue();
2、先把long转换成字符串String,然后在转行成Integer
long ll = 300000;
int ii = Integer.parseInt(String.valueOf(ll));
String:
1、调用intValue()方法
long ll = 300000;
String s = String.valueOf(ll);
2、调用Long.toString()方法
long ll = 300000;
String s = Long.toString(long);