import java.util.ArrayList;
import java.util.List;
public class TrafficStats {
static List<String> tmp = new ArrayList<String>();
public static void main(String[] args) {
String S = "u0_a215 3695 142 748656 120604 ffffffff 00000000 S com.netease.newsreader.activity";
String[] ary = S.split(" ");
for (int i = 0; i < ary.length; i++) {
if (ary[i].length()!=0) {
tmp.add(ary[i]);
}
}
String H =tmp.get(1);
int sh = Integer.parseInt(H);
System.out.println(sh);
}
}
结果:3695