Please help me with the following code for byte coversion?
<pre><code> String str = "dBZ";
 byte [] write_data = new byte[10];
 byte[] temp = str.getBytes();
 String s  = new String(temp);
 write_data[0] = Byte.decode(s);


Exception in thread "main" java.lang.NumberFormatException: For input string: "dBZ"
at java.lang.NumberFormatException.forInputString(Unknown Source)
at java.lang.Integer.parseInt(Unknown Source)
at java.lang.Byte.parseByte(Unknown Source)
at java.lang.Byte.valueOf(Unknown Source)
at java.lang.Byte.decode(Unknown Source)
at qwerty.ByteTest.main(ByteTest.java:9)
</code></pre>
