CDE
This commit is contained in:
parent
518da4a923
commit
764da6cbbb
6144 changed files with 83610 additions and 11 deletions
10
Task/CRC-32/Java/crc-32.java
Normal file
10
Task/CRC-32/Java/crc-32.java
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import java.util.zip.* ;
|
||||
|
||||
public class CRCMaker {
|
||||
public static void main( String[ ] args ) {
|
||||
String toBeEncoded = new String( "The quick brown fox jumps over the lazy dog" ) ;
|
||||
CRC32 myCRC = new CRC32( ) ;
|
||||
myCRC.update( toBeEncoded.getBytes( ) ) ;
|
||||
System.out.println( "The CRC-32 value is : " + Long.toHexString( myCRC.getValue( ) ) + " !" ) ;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue