Leverage Java 8 language features.
Remove cardinality variable in favor of reading the number of lines in the file. Use streams to read the file and insert into the bloom filter. Use try-with-resources to write the filter.
Remove cardinality variable in favor of reading the number of lines in the file. Use streams to read the file and insert into the bloom filter. Use try-with-resources to write the filter.