×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: ActionScript
Posted by: Dorian Cuentas
Added: Jul 14, 2015 4:28 PM
Views: 1884
Tags: no tags
  1. public static void printCartao(String cartao) {
  2.         //Retorno grid em matriz
  3.         char[][] grid = Usuario.RetornaGrid(cartao);
  4.         System.out.println((char) 27 + "[31m  A B C D E F G H I J" + (char) 27 + "[0m");
  5.         for (int i = 0; i < 5; i++) {
  6.  
  7.             System.out.print((char) 27 + "[31m" + (i + 1) + (char) 27 + "[0m");
  8.             System.out.print(" ");
  9.             for (int j = 0; j < 10; j++) {
  10.                 System.out.print(grid[i][j] + " ");
  11.             }
  12.             System.out.println(" ");
  13.         }
  14.     }