subject

11. given the following class import java. util. arraylist; public class rectangletester { public static void main(string[ ] args) { arraylist< rectangle > shapes = new arraylist< rectangle > (); shapes. add(new rectangle(1, 1)); shapes. add(new rectangle(2, 2)); shapes. add(new rectangle(3, 3)); shapes. add(new rectangle(4, 4)); rectangle datarecord; for(int index = 0; index < shapes. size(); index++) { datarecord = shapes. get(index); datarecord. calcrectarea(); datarecord. calcrectperimeter(); system. out. println(area = + datarecord.; system. out. println(perimeter = + datarecord.; } } } assume that getarea() returns the area of a rectangle and getrectperimeter() returns the perimeter of a rectangle. what will print when index = 3? (3 points) question 11 options: 1) area = 9 perimeter = 12 2) area = 4 perimeter = 8 3) area = 16 perimeter = 16 4) area = 25 perimeter = 20 5) area = 1 perimeter = 4

ansver
Answers: 1

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 25.06.2019 00:30
Look back at act iv scene v to read over ophelia's interactions with claudius and gertrude as well as laertes. then, compare her dialogue to hamlet's dialogue and soliloquies previously analyzed in acts i–iv. what is ophelia's state of mind versus hamlet's?
Answers: 1
question
Advanced Placement (AP), 25.06.2019 17:30
Identify one similarity between china and europe that explains their decisions on wether to explore or conquer lands around the indian ocean
Answers: 1
question
Advanced Placement (AP), 26.06.2019 11:30
Why does pacholke say that it shouldn’t make you happy that “as a prison system, as a nation, and as a society, we've become very good” at containing and controlling the people who have fallen through all of the other societal safety nets? what do you feel that he is insinuating by this statement? explain.
Answers: 1
question
Advanced Placement (AP), 27.06.2019 05:30
Which is not an explanation for why new approaches began to emerge in the 1950s and 1960s challenging the dominance of the psychodynamic and behaviorist approach
Answers: 1
You know the right answer?
11. given the following class import java. util. arraylist; public class rectangletester { public s...
Questions
question
Mathematics, 05.03.2021 23:10
question
Mathematics, 05.03.2021 23:10
question
Mathematics, 05.03.2021 23:10
Questions on the website: 13722363