code: public static final void replace(char[] array, char toBeReplaced,
  			char replacementChar)
  	{
  		if (toBeReplaced != replacementChar)
  		{
  			for (int i = 0, max = array.length; i < max; i++)
  			{
  				if (array[i] == toBeReplaced)
  				{
  					array[i] = replacementChar;
  				}
  			}
  		}
  	}
docs: Replace all occurrence of the character to be replaced with the remplacement character in the given array. <br>
  <br>
  For example:
  <ol>
  <li>
  
  <pre>
  array = { 'a' , 'b', 'b', 'a', 'b', 'a' }
  toBeReplaced = 'b'
  replacementChar = 'a'
  result =&gt; No returned value, but array is now equals to { 'a' , 'a', 'a', 'a', 'a', 'a' }
  </pre>
  
  </li>
  <li>
  
  <pre>
  array = { 'a' , 'b', 'b', 'a', 'b', 'a' }
  toBeReplaced = 'c'
  replacementChar = 'a'
  result =&gt; No returned value, but array is now equals to { 'a' , 'b', 'b', 'a', 'b', 'a' }
  </pre>
  
  </li>
  </ol>
  
  @param array
  the given array
  @param toBeReplaced
  the character to be replaced
  @param replacementChar
  the replacement character
  @throws NullPointerException
  if the given array is null