A program that calculates the subsets of a given set, written in Java.