title: java + replace small letters to capital letters in args
body: <p>Please advice:</p>
  
  <p>I write here part of JAVA language 
  in args[0] could be capital letters as "A" "B" "C" or small letter
   as "a" "b" "d" "i"</p>
  
  <p>my target is to replace all small letters in args[0] to capital letters
  How to do that?</p>
  
  <p>The second question – how to remove spaces in args[0] ?</p>
  
  <p>example
             args[0] could be deuSFRCQAAAVTvtev3843d4;'p-03eudhAHAHS</p>
  
  <pre><code>       int[] anArray = new int[30];  
  
                anArray[0]= args[0].replaceAll("[^A]", "").length();
                anArray[1]= args[0].replaceAll("[^B]", "").length();
                .
                .
                .
                .
  </code></pre>
  
  <p>.
  .</p>