Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners Compare two Byte Arrays?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Java Coder
Compare two Byte Arrays?
1 Answer(s)      11 months ago
Posted in : Java Beginners


Compare two Byte Arrays?


Advertisement
View Answers

December 23, 2013 at 5:46 PM


Given code works on the static array comparison methods in the Arrays class.

if (Arrays.equals(array, new BigInteger("1111000011110001", 2).toByteArray()))
{
    System.out.println("Yup, they're the same!");
}


Related Tutorials/Questions & Answers:
Advertisements
Advertisements
 

 

 

DMCA.com