title: Reverse a string without using string functions
body: <p>How to write a java program to reverse a string without using string functions?</p>
  
  <pre><code> String a="Siva";
  
   for(int i=0;i&lt;=a.length()-1;i++)
   {
       System.out.print(a.charAt(i));
   }
       System.out.println("");
  
   for(int i = a.length() - 1; i &gt;= 0; --i)
   {
       System.out.print(a.charAt(i)); 
   }
  </code></pre>
  
  <p>here <code>charAt()</code> and <code>a.length()</code> are string functions</p>