title: converting integer from 2 bytes
body: <p>First of all I have a couple hours experience with java, so if its a bit easy question sorry about that. </p>
  
  <p>Now, I have a byte array with size 2  And I want to get corresponding integer value from it. I use little endian notation. Here is my code:</p>
  
  <pre><code>public static int convertInt(byte[] twoByte){
         //TODO
  }
  </code></pre>
  
  <p>Is there anyone to help me ?</p>