Move the code into algorithms-miscellaneous-3

This commit is contained in:
Andrew Shcherbakov
2019-06-18 21:22:13 +02:00
parent 5698486178
commit 9edcaa30d5
3 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
package com.baeldung.folding;
/**
* Code snippet for article "A Guide to the Folding Technique".
*
* @author A.Shcherbakov
*
*/
public class Main {
public static void main(String... arg) {
FoldingHash hasher = new FoldingHash();
final String str = "Java language";
System.out.println(hasher.hash(str, 2, 100_000));
System.out.println(hasher.hash(str, 3, 1_000));
}
}