Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public String toString() {
  2. String res = new String();
  3.  
  4. // Recopier chaque ligne de la grille dans le buffer resultant
  5. //
  6. for (int i= 0; i < m_hauteur; i++)
  7. {
  8.  
  9. // Recopier toutes les cellules de la ligne courante
  10. //
  11. for(int j = 0;j<m_largeur;j++)
  12. {
  13. res += m_cellules[i][j];
  14.  
  15. }
  16.  
  17. // Ajouter un retour ligne dans le buffer
  18. //
  19. res += '\n';
  20.  
  21. }
  22. return res;
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement