A simple Java program that calculates the area of different polygons given certain values.