Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. public void closeDico(HashMap<String, String []> dico, String [] newTableFr, int compteur2)throws IOException{
  2. int compteurTmp = 0;
  3. for(int i = this.compteur; i < compteur+compteur2; i++){
  4. tableFr[i]=newTableFr[compteurTmp];
  5. System.out.println(tableFr[i]);
  6. compteurTmp++;
  7. }
  8. FileWriter f1 = new FileWriter("C:\\Users\\Dylan\\Documents\\monFichier.txt");
  9. for(int i = 0; i < compteurTmp; i++){
  10. String string [] = dico.remove(tableFr[i]);
  11. String compilation = tableFr[i]+"#";
  12. for(int j = 0; j < string.length; j++){
  13. compilation += string[j]+"_";
  14. }
  15. compilation += "!";
  16. f1.write(compilation);
  17. }
  18. f1.close();
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement