title: Hex into EBCDIC
body: <p>I have a GUI where i try to convert a EBCDIC String into Hexadecimal, but it will not work :/</p>
  
  <pre><code>ebcdichex.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent e) {
              output6.setText("");
              String hexadecimal3 = input4.getText().replace("\n", "");
              byte[] chars2;
  
              try {
                  chars2 = hexadecimal3.getBytes("IBM-273");
                  StringBuilder hexa2 = new StringBuilder();
                  for(int i = 0;i&lt;chars2.length;i++){
                      byte[] b = {(byte) Integer.parseInt(chars2.toString(),16)};     
                      hexa2.append(b);
                  }
                  output6.append(hexa2.toString());
              }
           catch (UnsupportedEncodingException e1) {
  
              e1.printStackTrace();
          }
          }
      });
  </code></pre>
  
  <p>Example input:</p>
  
  <pre><code>f1f2f3f4
  </code></pre>
  
  <p>translated:</p>
  
  <pre><code>1234
  </code></pre>
  
  <p>It just throws this Error: </p>
  
  <pre><code>Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "[B@147c5fc"
  </code></pre>
  
  <p>What is wrong with this code?</p>