Search:

Type: Posts; User: AmWin67_15

Search: Search took 0.14 seconds.

  1. Re: Function that compares two arrays and stores the result in a third one

    "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...
  2. Re: Function that compares two arrays and stores the result in a third one

    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];...
  3. Re: Function that compares two arrays and stores the result in a third one

    I make this for the statement :


    int sizeTj = 0;
    sizeTj = tabPlayer.length;

    int sizeTm = 0;
    sizeTm = tabOrdi.length;

    int k=0;
  4. Re: Function that compares two arrays and stores the result in a third one

    The entire code :



    import java.util.Scanner;
    public class Mastermind_ho {

    static Scanner sc = new Scanner(System.in);
    static String [] TAB_REF_COLORS =...
  5. Re: Function that compares two arrays and stores the result in a third one

    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...
  6. Function that compares two arrays and stores the result in a third one

    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...
Results 1 to 6 of 6