public ArrayList<String> tableOrganize(String strKey, long intKey, ArrayList<String> flist)
    {
        
        while(filetable2.get(strKey).get(intKey).size()>1)
                {
                    boolean g;
                    String stemp1,stemp2;
                    stemp1=filetable2.get(strKey).get(intKey).get(0);
                    filetable2.get(strKey).get(intKey).remove(0);
                    File ftemp1,ftemp2;
                    ftemp1=new File(stemp1);
                      // System.out.println("ftemp1.length "+ftemp1.length());
                    g=true;
                    for(int jit=0;jit<filetable2.get(strKey).get(intKey).size();jit++)
                    {
                        stemp2=filetable2.get(strKey).get(intKey).get(jit);
                       
                        ftemp2=new File(stemp2);
                        boolean choose_byte_com=false;
                        if(ftemp2.length()<30000000)
                        {
                            choose_byte_com=byteLevelCompare(ftemp1,ftemp2);
                        }
                        else
                        {
                            try {
                                LargeSizeFile lsg=new LargeSizeFile(ftemp1, ftemp2);
                                choose_byte_com=lsg.byteLevelCompare();
                            } catch (FileNotFoundException ex) {
                                Logger.getLogger(Archivedfile.class.getName()).log(Level.SEVERE, null, ex);
                            } catch (IOException ex) {
                                Logger.getLogger(Archivedfile.class.getName()).log(Level.SEVERE, null, ex);
                            }
                        }
                        if(choose_byte_com)
                        {
                          //  filmatc_coun++;
                          //  System.out.println("filmatc_coun   "+filmatc_coun);
                            if(g)
                            {
                               
                                flist.add("-------"+ftemp1.getName()+"-----------");
                                fr.ta.append("-------"+ftemp1.getName()+"-----------\n");
                                file_cont++;
                                flist.add(stemp1);
                                 fr.ta.append("*"+file_cont+"--"+stemp1+"\n");
                                 file_cont++;
                                g=false;
                            }
                            
                            
                                
                            flist.add(stemp2);
                            fr.ta.append("*"+file_cont+"--"+stemp2+"\n");
                            file_cont++;
                           filetable2.get(strKey).get(intKey).remove(jit);
                            jit--;
                    }   
                }
                }
        
        return flist;
    }