Search Java Code Snippets

  Help us in improving the repository. Add new snippets through 'Submit Code Snippet ' link.

#Java - Code Snippets for '#Byte[]' - 1 code snippet(s) found

 Sample 1. Method to invert / reverse Bit Data

byte[] bitInvertData(byte[] data, int startIndex, int endIndex){
   for (int i = startIndex; i < endIndex; i++) {
      data[i] = ((byte)(255 - data[(i - startIndex)]));
   return data;

   Like      Feedback     bit data  reverse bit data  byte[]  byte array

Subscribe to Java News and Posts. Get latest updates and posts on Java from
Enter your email address:
Delivered by FeedBurner

comments powered by Disqus