Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Error : Array required, but java.lang.String found
- public class TP2 {
- private static String[] initTables(String[] tNoms, String[] tJoueurs){
- for(int i=0; i<=4; i++){
- tJoueurs[i][0] = tNoms[i];
- for(int d=1; d<=5; d++){
- Carte carte = PaquetCartes.piger();
- tJoueurs[i][d] = carte;
- }
- }
- return tJoueurs;
- }
- public static void main (String[] params) {
- String round = "Round 0";
- String[] tNoms = {"Moi","Bob","Joe","Kate"};
- String[][] tJoueurs = {{"Joueur","c1","c2","c3","c4","c5"}};
- for(int i=0; i<=4; i++){
- System.out.println(tJoueurs[i]);
- }
- } // main
- } // TP2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement