Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.78 KB | None | 0 0
  1. // Error : Array required, but java.lang.String found
  2.  
  3. public class TP2 {
  4.    
  5.     private static String[] initTables(String[] tNoms, String[] tJoueurs){
  6.         for(int i=0; i<=4; i++){
  7.             tJoueurs[i][0] = tNoms[i];
  8.             for(int d=1; d<=5; d++){
  9.                 Carte carte = PaquetCartes.piger();
  10.                 tJoueurs[i][d] = carte;
  11.             }
  12.         }
  13.         return tJoueurs;
  14.     }
  15.  
  16.     public static void main (String[] params) {
  17.        
  18.         String round = "Round 0";
  19.        
  20.         String[] tNoms = {"Moi","Bob","Joe","Kate"};
  21.        
  22.         String[][] tJoueurs = {{"Joueur","c1","c2","c3","c4","c5"}};
  23.        
  24.         for(int i=0; i<=4; i++){
  25.             System.out.println(tJoueurs[i]);
  26.         }
  27.        
  28.     } // main
  29.    
  30. } // TP2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement