|
-
December 27th, 2011, 06:21 AM
#1
draw Rectangle
Hi guys,
I need help.. I want to write a code for drawing me rectangles ..
And I need to make 2 functions one for not fill rect and the other is for fill rect ..
I just started to write some draft
please any help be more then welcome ..
public class Rectangle {
private int width , height;
public Rectangle (int w, int h) {
width = w;
height = h;
}
}
for example
draw for (4,4)
****
* *
* *
****
drawFilled for (5,5)
*****
*****
*****
*****
*****
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|