title: Java - Convert lower to upper case without using toUppercase()
body: <p>I'm trying to create a short program that would convert all letters that are uppercase to lowercase (from the command line input). </p>
  
  <p>The following compiles but does not give me the result I am expecting. What would be the reason for this?? </p>
  
  <p>Eg) java toLowerCase BANaNa -> to give an output of banana</p>
  
  <pre><code> public class toLowerCase{
          public static void main(String[] args){
  
              toLowerCase(args[0]);
          }
  
          public static void toLowerCase(String a){
  
              for (int i = 0; i&lt; a.length(); i++){
  
                  char aChar = a.charAt(i);
                  if (65 &lt;= aChar &amp;&amp; aChar&lt;=90){
                      aChar = (char)( (aChar + 32) ); 
                  }
  
                  System.out.print(a);
              }
           }   
      }
  </code></pre>