title: How to call a variable from a statistical method C#
body: <p>How to print the new String variable in the main method?</p>
  <pre><code>public static void ReverseString( char[] charArray)   
  {
      int i = charArray.Length - 1, j = 0;
      while (j &lt; i)
      {
          if (!char.IsLetter(charArray[j]))
              j++;
          else if (!char.IsLetter(charArray[i]))
              i--;
          else
          {
              char tmp = charArray[j];
              charArray[j] = charArray[i];
              charArray[i] = tmp;
              j++;
              i--;
              
          }
          string newString = string.Concat(charArray);
      }
  }
  </code></pre>
  <pre><code>public static class Program 
  {
      static void Main(string[] args)
      {
          Console.WriteLine(&quot;Enter the string&quot; );
      }
  }
  </code></pre>
  <p>I'm new to programming.</p>