Search:

Type: Posts; User: ghostheadx

Search: Search took 0.18 seconds.

  1. Re: How to copy one array into another and flip the values

    Here's the error:




    TC1.java:17: error: array dimension missing

    String w = new String[]w;
  2. Re: How to copy one array into another and flip the values

    Well, when I try this:




    w = {s[0], s[1], s[2], s[3]}



    It returns an error. I get errors A LOT, due to different things I try, that say that w is already a string type. How do I take...
  3. Re: How to copy one array into another and flip the values

    So, using the variables "s" and "w" that would be this:

    copyArray = new String[s.length]
    for (i = copyArray.length - 2, j = 0; j < copy.length ; i--, j++ )
    copyArray[j] = s[i];

    Or is that a...
  4. How to copy one array into another and flip the values

    ----------------------------------------------

    IE:

    "go", "west", "young", "man"

    would be this:

    "man", "young", "west", "go"
Results 1 to 4 of 4