title: java + print vertical BAR
body: <p>I start today to write my first java program
  I write java program that count capital letters from args[0]
  and display it by number</p>
  
  <pre><code>     charCountA = args[0].replaceAll("[^A]", "").length();
       charCountB = args[0].replaceAll("[^B]", "").length();
       charCountC = args[0].replaceAll("[^C]", "").length();
  
                 System.out.println("A   " + charCountA );
                 System.out.println("B   " + charCountB );
                 System.out.println("C   " + charCountC );
  </code></pre>
  
  <p>if args[0]=ABBCCC
  then the program print</p>
  
  <pre><code>    A 1
  </code></pre>
  
  <p>my question  how to display the charCountA and other cahrCountB/C.... by vertical bar 
  for example</p>
  
  <pre><code> charCountA=1 then will print --&gt; A  #
   charCountA=2 then will print --&gt; A  ##
   charCountA=3 then will print --&gt; A  ###
   charCountA=3 then will print --&gt; A  ####
  </code></pre>
  
  <p>and so on</p>