dcsimg
a way to compare two byte arrays
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   oren_gertner
Posted On:   Wednesday, July 11, 2001 12:16 AM

is there any way to compare (in Java) two byte arrays, without looping on all the array?

thanks.

Re: a way to compare two byte arrays

Posted By:   John_Zukowski  
Posted On:   Wednesday, July 11, 2001 10:35 AM

It depends on what you mean by compare. Arrays.equals(array1, array2) will check for equality. There is also Arrays.sort() and Arrays.binarySearch().
About | Sitemap | Contact