Console app - generate geometrical figures. Java