public void escreve(String nome){
        String content = "";
        String content2 ="";
        for(int i = 0 ; i < lChegada.size() ; i++){
            if( i%10==0 && i != 0){
                content = content.concat("\n");
                content2= content2.concat("\n");
            }
            content = content.concat(lChegada.get(i).toString().substring(0, 4)+" ");
            content2 = content2.concat(lAtendimento.get(i).toString().substring(0, 4)+" ");
        }
        try{
            final String dir = System.getProperty("user.dir");
            File file = new File(dir+"/"+nome+"Chegadas.txt");
            if(!file.exists()){
                file.createNewFile();
            }
            FileWriter fw = new FileWriter(file.getAbsoluteFile());
            BufferedWriter bw = new BufferedWriter(fw);
            bw.write(content);
            bw.close();
            
            file = new File(dir+"/"+nome+"TempoUso.txt");
            if(!file.exists()){
                file.createNewFile();
            }
            fw = new FileWriter(file.getAbsoluteFile());
            bw = new BufferedWriter(fw);
            bw.write(content2);
            bw.close();
            System.out.println("Gravado");
        }catch(IOException e){
            e.printStackTrace();
        }
    }