title: Java equivalent for .charCodeAt()
body: <p>In JavaScript, <code>.charCodeAt()</code> returns a Unicode value at a certain point in the string which you pass to a function. If I only had one character, I could use the code below to get the Unicode value in Java.</p>
  
  <pre><code>public int charCodeAt(char c) {
       int x;
       return x = (int) c;
  }
  </code></pre>
  
  <p>If I had a string in Java, how would I get the Unicode value of one individual character within the string, like the <code>.charCodeAt()</code> function does for JavaScript?</p>