title: Java integer to byte array
body: <p>I got an integer: <code>1695609641</code></p>
  
  <p>when I use method: </p>
  
  <pre><code>String hex = Integer.toHexString(1695609641);
  system.out.println(hex); 
  </code></pre>
  
  <p>gives:</p>
  
  <pre><code>6510f329
  </code></pre>
  
  <p>but I want a byte array:</p>
  
  <pre><code>byte[] bytearray = new byte[] { (byte) 0x65, (byte)0x10, (byte)0xf3, (byte)0x29};
  </code></pre>
  
  <p>How can I make this?</p>