title: Is there a built-in Java method to box an array?
body: <p>Is there a standard method I can use in place of this custom method?</p>
  
  <pre><code>public static Byte[] box(byte[] byteArray) {
      Byte[] box = new Byte[byteArray.length];
      for (int i = 0; i &lt; box.length; i++) {
          box[i] = byteArray[i];
      }
      return box;
  }
  </code></pre>