MyClass.java
 

public class MyClass {
  public static void main(String[] args) {
    String myStr = "Hello";
    int result = myStr.codePointAt(0);
    System.out.println(result);
  }
}

Result:
72