[B]Write a Java class definition for class Rectangle. Each object of this class has the following variables: height : an integer value representing height. width : an integer value representing width. Your class should also define the following methods:  A constructor that accepts two integer parameters. First parameter is for height, second parameter is for width. If any parameter is not in the range of [1, 10] inclusive, then it must be set to 3 by default.  draw method. This will draw the rectangle on the screen. For the edges of the rectangle, use ‘#’ character. For the inside of rectangle, use space character. Have the main method in the Rectangle class. Put this main method as it is. Do not make any change on this method. public static void main(String[] args) { System.out.println("COP 2253, Workshop6. This program written by Bilal Gonen"); System.out.println(); Rectangle r1 = new Rectangle(-1, 11); r1.draw(); Rectangle r2 = new Rectangle(4,5); r2.draw(); } Submission  Submit 2 files: Rectangle.java , screen shot.  Follow submission instructions under the General Info module on e-learning.[/B]
Already tried:
[B]/* Angel Williams COP 2253 - Workshop 6 Mar 20, 2013 */ public class Rectangle { private int height, width; public Rectangle(){ height = 0; width = 0; } public Rectangle(int hei, int wid){ height = hei; width = wid; } public void draw(){ for(int i = 0; i < width; i++){ } for (int j= 0; j <= height; j++) { } if ( i System.out.print("#"); } public static void main(String[] args) { System.out.println("COP 2253, Workshop6. This program written by Angel Williams\n"); /**Rectangle r1 = new Rectangle(-1, 11); r1.draw();*/ Rectangle r2 = new Rectangle(4,5); r2.draw(); } }[/B]