Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. public static void main(String[] args) {
  2. Grille G;
  3. try{
  4. G = new Grille(6, 9);
  5. System.out.println(G.toString());
  6. G.appliquer(2, 3, 'O');
  7. System.out.println(G.toString());
  8. char[] ligne2 = G.ligne(2);
  9. char[] ligne1 = G.ligne(1);
  10. char[] colonne3 = G.colonne(3);
  11. char[] colonne4 = G.colonne(4);
  12. System.out.println(new String(ligne2).toString()+"\n");
  13. System.out.println(new String(ligne1).toString()+"\n");
  14. System.out.println(new String(colonne4).toString()+"\n");
  15. System.out.println(G.toString());
  16. }
  17. catch(Exception e){}
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement