package movie;
import java.io.*;
public class pro {
int s,datanumber;
String[] data=new String[500000];
String[] subdata=new String[5000];
String[] date=new String[5000];
String[] name=new String[500000];
int number;
String[] id=new String[5000];
int[] point=new int[5000];
int[] v=new int[5000];
public static void main(String[] args) {
pro te=new pro();
}
pro(){
readx("a.csv");
int sx=0;
for(s=2;s<datanumber;s++){
if(data[s].indexOf("あさイチ")>-1)sx=sx+1;
if(data[s].indexOf("あさイチ")>-1)subdata[sx]=data[s];
}
number=sx;
for(s=1;s<number+1;s++){
System.out.println(subdata[s]);
}
}
void readx(String file){
String str;
BufferedReader br;
int s;
s=0;
try {
br = new BufferedReader(new InputStreamReader(new FileInputStream(file),"UTF-8"));
while((str = br.readLine()) != null) {
s=s+1;
data[s]=str;
}
br.close();
} catch (IOException e) {System.out.println(e);}
datanumber=s;
}
int numx(String str){
int nx;
nx=0;
try{
nx=Integer.parseInt(str);
}catch (Exception e) {}
return nx;
}
}
最終更新:2016年07月28日 16:39