@Override
        public void delMaterie(String materieDeSters) {
        BufferedReader fisier;
        try {
            fisier = new BufferedReader(new FileReader("fmaterii"));
            BufferedWriter fisier_nou;
            ArrayList<String> vector = new ArrayList<>();
            for(String line; (line = fisier.readLine())!= null;){
                vector.add(line);                  
            }
            for(int i=0;i<vector.size();i++){
                if(materieDeSters.equals(vector.get(i)))
                {
                    vector.remove(i);
                    //NEED MORE HERE
                    fisier_nou = new BufferedWriter(new FileWriter("fmaterii"));
                    for(i=0;i<vector.size();i++){
                        fisier_nou.write(vector.get(i));
                        fisier_nou.newLine();
                    }
                    fisier_nou.close();
                }
            }
        } catch (FileNotFoundException ex) {
            Logger.getLogger(Secretar.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(Secretar.class.getName()).log(Level.SEVERE, null, ex);
        }
        
            
    }