× Didn't find what you were looking for? Ask a question
Top Posters
Since Sunday
New Topic  
DePeet DePeet
wrote...
Posts: 338
Rep: 0 0
6 years ago
What does the following code fragment do?
Circle circle = new Circle(100, 100, 50);
circle.setFill(Color.GREEN);
Rectangle rectangle = new Rectangle(70, 70, 225, 75);
rectangle.setStroke(Color.BLUE);
rectangle.setStrokeWidth(2);
rectangle.setFill(null);
a.   It creates a green circle, centered at coordinates (100, 100).
b.   It creates a rectangle which overlaps the circle since its upper-left corner is at coordinates (70, 70) and its dimensions are 225 X 75.
c.   Since the rectangle's fill color is set to null, the circle will be visible through the rectangle.
d.   The rectangle will have a blue border.
e.   All of these are true.
Read 104 times
1 Reply
Replies
Answer verified by a subject expert
se7ense7en
wrote...
Posts: 327
Rep: 0 0
6 years ago
Sign in or Sign up in seconds to unlock everything for free
1

Related Topics

DePeet Author
wrote...

6 years ago
Just got PERFECT on my quiz
wrote...

Yesterday
Good timing, thanks!
wrote...

2 hours ago
Smart ... Thanks!
New Topic      
Explore
Post your homework questions and get free online help from our incredible volunteers
  1266 People Browsing
Related Images
  
 171
  
 226
  
 509
Your Opinion
Who's your favorite biologist?
Votes: 586

Previous poll results: How often do you eat-out per week?