private String toComparableString(final byte[] memory){
  final StringBuffer stringBuffer=new StringBuffer();
  for (  final byte b : memory) {
    stringBuffer.append(Convert.byteToHexString(b));
  }
  return stringBuffer.toString();
}

private String toComparableString ( final byte [ ] memory ) { final StringBuffer stringBuffer = new StringBuffer ( ) ; for ( final byte b : memory ) { stringBuffer . append ( Convert . byteToHexString ( b ) ) ; } return stringBuffer . toString ( ) ; }
turns a byte array into a string .
