CartesianProduct

This is the program for calculating Cartesian product in Java