map=new HashMap();
StringBuilder sb=null;
int n=0;
int tm=0;
String sss=null;
while(map.entrySet().size()<270){
n=0;
tm=0;
sb=new StringBuilder();
for(int m=0;m<13;m++){
if(m%2==1){
tm=(int)(Math.random()*(s[1][n]-s[0][n]))+s[0][n];
sb.append(array[tm]);
}else{
tm=(int)(Math.random()*array.length);
sb.append(array[tm]);
}
}
sss=sb.toString();
if(map.get(sss.hashCode())==null){
map.put(sss.hashCode(), sss);
try {
fwr.write(sss+"rn");
fwr.flush();
} catch (IOException e) {
e.printStackTrace();
}
}
}
}
@SuppressWarnings("unchecked")
public static void main(String[] args) throws IOException, InterruptedException{
FileWriter fw=new FileWriter(new File("F://111.txt"),true);
int[][] k={{0,0,0,0,0,0},{array.length,array.length,array.length,array.length,array.length,array.length}};
ForkJoinTask sort = new TestForkJoin(k,fw);
ForkJoinPool fjpool = new ForkJoinPool();
fjpool.submit(sort);
fjpool.shutdown();
fjpool.awaitTermination(12000,TimeUnit.SECONDS);
fw.close();
}
}