question: 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 ] ) ; }
target:  Prints a int[] as a string separated by ".", if the string is to short the default is "0.0.0.0"