当前位置: 技术问答>java相关
请高人帮忙看看我的代码
来源: 互联网 发布时间:2015-01-16
本文导语: import java.io.*; import java.util.*; import java.lang.*; public class BrandDown{ static List drugSort = new ArrayList(); static List downDrug = new ArrayList(); static Vector downDrug2,drugSort2; static List drugSort4 = new ArrayList(); public static vo...
import java.io.*;
import java.util.*;
import java.lang.*;
public class BrandDown{
static List drugSort = new ArrayList();
static List downDrug = new ArrayList();
static Vector downDrug2,drugSort2;
static List drugSort4 = new ArrayList();
public static void main(String[] args) throws Exception{
BufferedReader fileInput2 = new BufferedReader(new FileReader("gqdown.csv"));
String tempS = new String();
while((tempS = fileInput2.readLine()) != null){
downDrug.add(tempS);
}
fileInput2.close();
BufferedReader fileInput1 = new BufferedReader(new FileReader("result.csv"));
String s1 = new String();
while((s1 = fileInput1.readLine()) != null)
{drugSort.add(s1);}
fileInput1.close();
Collections.sort(downDrug);
Collections.sort(drugSort);
//for(int i = 0;i
import java.util.*;
import java.lang.*;
public class BrandDown{
static List drugSort = new ArrayList();
static List downDrug = new ArrayList();
static Vector downDrug2,drugSort2;
static List drugSort4 = new ArrayList();
public static void main(String[] args) throws Exception{
BufferedReader fileInput2 = new BufferedReader(new FileReader("gqdown.csv"));
String tempS = new String();
while((tempS = fileInput2.readLine()) != null){
downDrug.add(tempS);
}
fileInput2.close();
BufferedReader fileInput1 = new BufferedReader(new FileReader("result.csv"));
String s1 = new String();
while((s1 = fileInput1.readLine()) != null)
{drugSort.add(s1);}
fileInput1.close();
Collections.sort(downDrug);
Collections.sort(drugSort);
//for(int i = 0;i