package rarte;
import tool.*;
public class pro {
int s,datanumber;
String[] data=new String[5000];
String[] credit=new String[5000];
int[] v=new int[5000];
int number;
String[] date=new String[5000];
public static void main(String[] args) {
pro r=new pro();
}
pro(){
readfile sub2=new readfile();
sub2.makedata("p.csv","UTF-8");
data=sub2.data;
datanumber=sub2.datanumber;
for(s=2;s<datanumber+1;s++){
credit[s-1]=data[s];
}
String str="石原さとみ,藤沢恵麻,原田夏希,本仮屋ユイカ,村川絵梨,宮崎あおい,";
str=str+"比嘉愛未,貫地谷しほり,榮倉奈々,多部未華子,倉科カナ,";
str=str+"松下奈緒,瀧本美織,井上真央,尾野真千子,堀北真希,夏菜,能年玲奈,";
str=str+"杏,吉高由里子,土屋太凰";
String[] p=str.split(",");
int tr;
for(tr=0;tr<p.length;tr++){
String word=p[tr];
System.out.println(word);
readfile sub=new readfile();
sub.makedata("act.csv","UTF-8");
data=sub.data;
datanumber=sub.datanumber;
int sx=0;
for(s=2;s<datanumber+1;s++){
String[] x=data[s].split(",");
if(x[2].equals(word))sx=sx+1;
if(x[2].equals(word))v[sx]=numx(x[1]);
}
number=sx;
for(s=1;s<number+1;s++){
sx=v[s];
String[] x1=credit[sx].split(",");
System.out.println(x1[0]+"年"+x1[1]+"月"+x1[2]+","+x1[5].replace("%", ""));
}
}
}
int numx(String str){
int nx;
nx=0;
try{
nx=Integer.parseInt(str);
}catch (Exception e) {}
return nx;
}
}
最終更新:2016年07月31日 23:01