标签:car lan i++ integer new cat ret edr 清零
import static java.lang.Integer.parseInt;
class zhgetmuluhuoqu {
//方法2:得到公网集合
public static ArrayList zhlist(String dirname, int yifeinum,int zhushinum,int pindiannum) {
ArrayList huoquarray = new ArrayList<>(); //定义集合,放异频优先级,同频优先级,异频信道,临区场强
String line;
BufferedReader br= null;
File srcfile = new File(dirname);
File[] zhangfilearraylist = srcfile.listFiles();//存储各个文本文件
int j = 0;
if (zhangfilearraylist != null) {
for (File file : zhangfilearraylist) {
try {
br = new BufferedReader(new FileReader(zhangfilearraylist[j]));
br.readLine();//越过文件的第一行正文//no1line=kongzuoyihang.split(",");//把每列字段的名称传给数组
int i = 0;//下一个文件行数清零
String zhangshuzu[];
while ((line = br.readLine()) != null) {
zhangshuzu = line.split(",");
if (parseInt(zhangshuzu[48])>zhushinum) {
huoquarray.add(" "+zhangshuzu[3] +","+zhangshuzu[5] + "," + zhangshuzu[6] + "," + zhangshuzu[7]+","+zhangshuzu[8]+","+ "同频大于:"+zhushinum+"\n"); //array.add("(第" + i + "行)" + "同频优先级7:" + zhangshuzu[5] + ", " + zhangshuzu[6] + ", " + zhangshuzu[7]+","+"\n");
} //aw:cellReselectionPriority
if (parseInt(zhangshuzu[111])!=pindiannum) {
huoquarray.add(" "+zhangshuzu[3] +","+zhangshuzu[5] + "," + zhangshuzu[6] + "," + zhangshuzu[7]+","+zhangshuzu[8]+","+"频点非:"+ pindiannum+"\n"); } //dl_CarrierFreq
if (parseInt(zhangshuzu[117])<yifeinum) {
huoquarray.add(" "+zhangshuzu[3] +","+zhangshuzu[5] + "," + zhangshuzu[6] + "," + zhangshuzu[7]+","+zhangshuzu[8]+","+"异频小于:"+ yifeinum+"\n"); } //dn cellReselectionPriority
i++;
}
br.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
j++;
}
}
return huoquarray;
}
public static ArrayList gongwangjihe(String dirname) {
ArrayList gongwangarray = new ArrayList<>(); //定义集合
String line;
BufferedReader br= null;
File srcfile = new File(dirname);
File[] zhangfilearraylist = srcfile.listFiles();//存储各个文本文件
int j = 0;
if (zhangfilearraylist != null) {
for (File file : zhangfilearraylist) {
try {
br = new BufferedReader(new FileReader(zhangfilearraylist[j]));
br.readLine();//越过文件的第一行正文//no1line=kongzuoyihang.split(",");//把每列字段的名称传给数组
int i = 0;//下一个文件行数清零
String zhangshuzu[];
while ((line = br.readLine()) != null) {
zhangshuzu = line.split(",");
gongwangarray.add(zhangshuzu[3] +","+zhangshuzu[5] + "," + zhangshuzu[6] + "," + zhangshuzu[7]+","+zhangshuzu[8]);
i++;
}
br.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
j++;
}
}
return gongwangarray;
}
}
标签:car lan i++ integer new cat ret edr 清零
原文地址:https://www.cnblogs.com/tensorflowandroid/p/12651250.html