title: How does String.codePointCount() function work
body: <p>suppose i have this example</p>
  
  <pre><code>    public static void main(String[] args) {
      System.out.println("This".codePointCount(0, 4));
  
  }
  </code></pre>
  
  <p>output is 4 
  and if instead of 4 i put 3 output will be 3 
  basically output is </p>
  
  <blockquote>
    <p>0-3 or generally |firstIndex - secondIndex|</p>
  </blockquote>
  
  <p>Don't know how it works
  can you please give an example where output is different then </p>
  
  <blockquote>
    <p>|firstIndex - secondIndex|</p>
  </blockquote>
  
  <p>Thanks</p>