public static long generate(String value){
  int len=value.length();
  long crc=0;
  for (int i=0; i < len; i++)   crc=next(crc,value.charAt(i));
  return crc;
}

public static long generate ( String value ) { int len = value . length ( ) ; long crc = 0 ; for ( int i = 0 ; i < len ; i ++ ) crc = next ( crc , value . charAt ( i ) ) ; return crc ; }
calculates crc from a string .
