SHARE
TWEET

Untitled

a guest Oct 17th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(listaActual.length > listaGlobal.length) {
  2.        
  3.             for (int x = 0; x < listaActual.length; x++) {
  4.                 //System.out.println(listaActual[x]);
  5.                 encontrado = false;
  6.                 for (int i = 0; i < listaGlobal.length; i++) {
  7.        
  8.                     if(listaActual[x].equals(listaGlobal[i])) {
  9.                         encontrado = true;                  
  10.                     }
  11.                 }                                  
  12.                     if(!encontrado) {
  13.                    
  14.                         System.out.println("Nuevo archivo: "+ listaActual[x]);
  15.                         File file3 = new File("C:\\Users\\Garcia Jorge\\Documents\\MDPyPC2019\\TP\\Prueba\\"+listaActual[x]);
  16.                         System.out.println("TamaƱo: "+ file3.length()+ " bytes");
  17.                        
  18.                     }
  19.                
  20.             }
  21.             this.listaGlobal = file2.list();
  22.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top