int size= 1;
FrequencyCount<String> fcg= new FrequencyCount();
FastaReader frg= new FastaReader(genomef);
FastaEntry eng;
while( (eng=frg.nextEntry())!=null ){
String s= eng.getSequence();
for( int i=0; i<s.length()-size; i++ ){
String ss= s.substring(i, i+size);
fcg.add(ss);
}
}
Object[] ks= fcg.getSortedKeys();
File[] fs= d.listFiles();
for( int j=0; j<fs.length; j++ ){
File f= fs[j];
if(FileName.getExt(f).equals("fasta")){
FastaReader fr= new FastaReader(f);
FastaEntry en;
FrequencyCount<String> fc= new FrequencyCount<>();
while( (en=fr.nextEntry())!=null ){
String s= en.getSequence();
for( int i=0; i<s.length()-size; i++ ){
String ss= s.substring(i, i+size);
fc.add(ss);
}
}