"defines a String array but does not assign any values to the array's elements. " but I am defining the function. In the main, there will be the values of the array's elements, that are given by the...
Type: Posts; User: AmWin67_15
"defines a String array but does not assign any values to the array's elements. " but I am defining the function. In the main, there will be the values of the array's elements, that are given by the...
I think I see where the problem is. Just a minute please. Thank you very much
--- Update ---
No .. big deception. I've written this :
static String [] tabPlayer = new String[NB_COLORS];...
I make this for the statement :
int sizeTj = 0;
sizeTj = tabPlayer.length;
int sizeTm = 0;
sizeTm = tabOrdi.length;
int k=0;
The entire code :
import java.util.Scanner;
public class Mastermind_ho {
static Scanner sc = new Scanner(System.in);
static String [] TAB_REF_COLORS =...
Are you talking about tabPlayer? if that's the case the
static void compareColor (String [] tabPlayer, String [] tabOrdi) has got 2 arguments and the function in the main that calls it has also 2...
Hello, I'm really new to Java. I have to do an exercice where a function compares two String arrays (one randomly generated by the computer and the other chosen by the user. And each time it finds an...