Question: Using the Graphics object g, create the following shapes 8) Using your knowledge of the drawRect and drawLine methods, create the following figure whose top-left
Using the Graphics object g, create the following shapes 8) Using your knowledge of the drawRect and drawLine methods, create the following figure whose top-left corner is at 20, 20 and whose width is 100 and height is 80. (Hint: First write the commands to draw the rectangle, then write the commands to draw the four lincs inside the rectangle.) It might help to label the beginning and ending points of each of the 4 cross lines
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
