creating a method that does what toString and replace do
<p>I have to make methods that will do similar operations to the two string methods. I understand that a for loop is needed but if im going to be replacing them in main  idk what to do after the for loop in both</p>

<pre><code>public class MyString

{

    private char someArray[] = new char [];
    private int SIZE;

 public void setString(String newString)
 {
      int size = 25;

        for(int i=0; i &lt; size; i++)
        someArray[i] = newString.charAt(i);

  }
  public String toString()
  {

        return new String(array);

  }
  public char charAt(int index)
    {
        for(int i = 0;i &lt; someArray.length; i++)
        someArray[i] = someArray[i.length]

        return i;

    }
   public int indexOf( char ch )
   {
       for (int i = 0; i &lt; array.length; i++)
       {
          if (someArray[i] == ch)
          {
              return i;   // Character found, return current index
          }
        }
              return -1;    // Character not found. Return -1
    }
    public boolean contains(char ch)
    {
        while(c &lt; someArray)
        {
            if(c == ch) return true;

        }

        return false;
     }
     public void replace(char oldChar, char newChar)
     {
         for(int i =0;i &lt;someArray.length;i++)
     }
     public void toLowerCase()
     {
         for (int i = 0; i &lt; letters.length; i++)


     }
</code></pre>
