package rectangles; public class ApplicationRectangle{ public static void main(String[] args){ Rectangle rectangle = new Rectangle(10.0,10.0,40.0,50.0); System.out.println(rectangle.toString()); if(args.length>3){ Rectangle rectangle2 = new Rectangle(Double.parseDouble(args[0]),Double.parseDouble(args[1]),Double.parseDouble(args[2]),Double.parseDouble(args[3])); System.out.println(rectangle2.toString()); } } }