public static String bytesToString(int[] b){
  if (b.length < 4) {
    return "0.0.0.0";
  }
  return String.format("%d.%d.%d.%d",b[0],b[1],b[2],b[3]);
}

public static String bytesToString ( int [ ] b ) { if ( b . length < 4 ) { return "0.0.0.0" ; } return String . format ( "%d.%d.%d.%d" , b [ 0 ] , b [ 1 ] , b [ 2 ] , b [ 3 ] ) ; }
prints a int [ ] as a string separated by " . " , if the string is to short the default is " 0 . 0 . 0 . 0 "
