title: how to count the letters in each letter in a string in Java?
body: <p>I have used this code to try this out:</p>
  
  <pre><code>String st="Hello world have a nice day";
  String arr=st.Split(" ");
  for (int i=0; i &lt; arr.length; i++) {
      ???
  }
  </code></pre>
  
  <p>But it doesn't work.</p>
  
  <p>I want it to output something like this:  </p>
  
  <pre><code>Hello=5
  World=5
  have=4
  a=1
  nice=4
  day=3
  </code></pre>
  
  <p>Does anyone know the right code, please?</p>