Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    7
    Views
    1,062

    Re: Replacing characters in a an array

    The code is testing the value of i. That is the int that controls the for loop. It is NOT a char to be tested by the Character class's methods.
    Where is the char values that you want to test?...
  2. Replies
    7
    Views
    1,062

    Re: Replacing characters in a an array

    If you are working with an array, you could use a loop, test each element of the array and change that element of the array by assigning it the new value. The code would not use the replace()...
  3. Replies
    7
    Views
    1,062

    Re: Replacing characters in a an array

    Are you working with a String or an array?
    With a String I think a regex might work.
    With an array, a loop and if statement would do it.
  4. Replies
    7
    Views
    1,062

    Re: Replacing characters in a an array

    That sounds like something that a regular expression could do if the contents of the array were in a String. I'm no good with regex so I'll leave it to someone that is.
    If the values are in an...
Results 1 to 4 of 4