アットウィキロゴ

しごと

package p3;
 
import java.io.File;
import tool.*;
 
public class pro {
 
    int s,datanumber;
    String[] data=new String[5000];
 
    public static void main(String[] args) {
        pro t=new pro();
    }
    pro(){
 
 
        String w="";
        w=w+"月曜ゴールデン,月曜名作劇場,ザ・サスペンス,金曜女のドラマスペシャル,火曜サスペンス劇場,";
w=w+"DRAMA COMPLEX,火曜ドラマゴールド,水曜グランドロマン,木曜ゴールデンドラマ,月曜ワイド劇場,";
w=w+"土曜ワイド劇場,水曜シアター9,水曜ミステリー9,女と愛とミステリー";
String[] w1=w.split(",");
 
 
File f=new File("data");
        String[] ff=f.list();
 
 
        int tr;
        for(tr=1;tr<ff.length;tr++){
         readfile sub2=new readfile();
        sub2.makedata("data/"+ff[tr],"UTF-8");
        data=sub2.data;
        datanumber=sub2.datanumber;
 
        String w2="";
        for(s=1;s<datanumber+1;s++){
       if(data[s].indexOf("番組名")>-1)w2=data[s+1];   
        }
 
        int sx;
for(sx=0;sx<w1.length;sx++){
        if(w2.indexOf(w1[sx])>-1)System.out.println(w1[sx]+","+ff[tr]);
        }
        }
 
    }
 
 
    }
 
 
 
}
 
最終更新:2017年08月06日 15:15