java internal encoding for chars are UTF-16 right? While all ASCII uses 2 bytes encoding, then I expect:
String h="hello";
System.out.println(h.codePointCount(0,h.length()));
System.out.println(h.length());
to print 10 and 5, But in fact it prints 5, 5.
Where did I get wrong?