title: Java String to byte conversion is different
body: <p>All</p>
  
  <p>I have a question for send byte array to Server.</p>
  
  <p>The Each ID has Text Value.</p>
  
  <pre><code>private String ID = "0001";
  byte STX = (byte)0x02;
  byte A = (byte)0x41;
  byte NUL = (byte)0x00;
  byte ETX = (byte)0x03;
  byte CR = (byte)0x0D;
  byte LF = (byte)0x0A;
  byte[] buffer = { STX, Byte.decode(ID), A, NUL, ETX, CR, LF };
  </code></pre>
  
  <p>I expected buffer values </p>
  
  <pre><code>buffer [02, 48, 48, 48, 49, 65, 00, 0D, 0A]
  </code></pre>
  
  <p>but buffer value has</p>
  
  <pre><code>buffer [02, 01, 65, 00, 0D, 0A]
  </code></pre>
  
  <p>How Can I Convert to "0001" to [48, 48, 48, 49], String to Decimal Conversion.</p>