title: Java reading from comport
body: <p><strong>Problem</strong>: Trying to read from some electronic scales using the comport via Java</p>
  
  <p>I am trying to read from a com port using Java. So far I have been successfull in creating a small application that uses the Java SerialPort and InputStream classes to read from the comport.</p>
  
  <p>The application uses a SerialPortEventListener to listen to event sent via the comport of the scale to the computer. So far I have had some success by using an InputStream inside the event listener to read some bytes from the comport, however the output does not make any sense and I keep getting messages in the form of:</p>
  
  <pre><code>[B@8813f2
  </code></pre>
  
  <p>or</p>
  
  <pre><code>[B@1d58aae
  </code></pre>
  
  <p>To clarify I am receiving these messages on screen when I interact with the keypad of the scale. I just need some help on interpreting the output correctly. Am I using the correct classes to read and write to the comport?</p>