package th;
import tool.readfile;
class pro implements Runnable{
Thread[] th=new Thread[100];
String[] id=new String[500];
String[] name=new String[500];
String[] data=new String[500];
int s,datanumber;
int gun;
int n;
String str;
public static void main(String[] args){
pro f=new pro();
}
pro() {
readfile subx=new readfile();
subx.makedata("id.txt","UTF-8");
data=subx.data;
datanumber=subx.datanumber;
for(s=1;s<datanumber+1;s++){
str=data[s];
String[] x=str.split(",");
id[s]=x[1];
name[s]=x[0];
}
n=0;
for(s=1;s<51;s++){
th[s]=new Thread(this);
th[s].start();
}
}
public void run() {
try{th[s].sleep(1000*s);} catch(InterruptedException e) { }
n=n+1;
ren sub=new ren();
sub.id=id;
sub.name=name;
sub.makedata(n);
}
}
package th;
import follower.googlecount;
public class ren {
String[] count=new String[2000];
int number;
int[] year=new int[2000];
int[] month=new int[2000];
int[] day=new int[2000];
String str,strx;
String[] id=new String[2000];
String[] name=new String[2000];
void makedata(int n){
googlecount sub=new googlecount();
sub.makedata(id[n]);
count=sub.count;
year=sub.year;
month=sub.month;
day=sub.day;
number=sub.number;
System.out.println(name[n]+","+number);
}
}
最終更新:2013年09月27日 06:06