title: Easiest way to convert an int (byte) to a single-character String in Java
body: <p>I have an int (-> byte) representing a valid <code>UTF-8</code> character and I want to print this single character in a <code>System.out.println</code>.</p>
  
  <p>I know these two ways to convert an int representing an UTF-8 byte to a single-character String:</p>
  
  <pre><code>int myByte = ...; // For example 67
  
  String sMyByte = String.valueOf((char)((byte)myByte &amp; 0xFF)); // 67 will become "C"
  
  String sMyByte = new String(new byte[]{ (byte)myByte }, StandardCharsets.UTF_8); // 67 will become "C"
  </code></pre>
  
  <p>Both seem a bit long / unreadable and I'd like to know if there is an easier way to convert an int representing a UTF-8 byte to a single-character String. If not I'll probably use the first one of the two above.</p>