fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6. import java.nio.ByteBuffer;
  7.  
  8. /* Name of the class has to be "Main" only if the class is public. */
  9. class Ideone
  10. {
  11. public static void main (String[] args) throws java.lang.Exception {
  12. byte[] response=new byte[] { -100,0,0,0 };
  13. byte[] tradeBytes;
  14. // ByteBuffer buffer = ByteBuffer.wrap(response).order(ByteOrder.LITTLE_ENDIAN);
  15. tradeBytes=response;
  16. System.out.println(response);
  17. System.out.println(tradeBytes);
  18.  
  19. }
  20. }
Success #stdin #stdout 0.08s 47088KB
stdin
Standard input is empty
stdout
[B@2ff4acd0
[B@2ff4acd0