|
Java™ by example!
|
|
|
How do I create my own checksum class?
Implement the Checksum interface. This interface defines the following methods:
The following example creates a checksum that is based on the following algorithm:
The distribution of this checksum is pretty bad, but that's not the point :) Main.java:
outputs:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|