Ave populus
ho questa funzione:
codice:
public void actionPerformed(ActionEvent e) {
   String cmd = Systempath + "cmd /C dir /B /ON " + dir + " > elenco.txt";
   try {			
      Runtime rtm = Runtime.getRuntime();
      Process prc = rtm.exec(cmd);
   } catch (Exception ex) { System.out.println(ex.getMessage()); }	
}]
che mi esegue; vorrei però, invece di metterlo in un file, mettere l'elenco dei file in un array
è possibile? se sì, come?