title: How to convert a string representation of unicode hex "0x20000" to the int code point 0x20000 in Java
body: <p>I have a list of String representations of unicode hex values such as "0x20000" () and "0x00F8" (ø) that I need to get the int code point of so that I can use functions such as:
  char[] chars = Character.toChars(0x20000); </p>
  
  <p>This should cover the BMP as well as supplementary characters. I cannot find any way to do it so would be glad of some help.</p>