1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
eimsori [14]
3 years ago
10

Write a program called FourRectanglePrinter that constructs a Rectangle object, prints

Computers and Technology
1 answer:
Marta_Voda [28]3 years ago
8 0
' if the rectangles were drawn, they would form one larger rectangle.' That part of the question I don't get. To print the location of the Rectangle write a toString method in the Rectangle class. When using the System.out.println method the toString method of that object will be called. If you have to translate the rectangle only when the System.out.println() methode is used you should translate the rectangle object in the toString methode. So the translate method keeps the translated cordinates, but only translates the rectangle when the toString is called. So the to string method would be something like that: String toString(){ return "X-cord.: "+ (this.X1+this.translatedX) +"-"+ (this.X2+this.translatedX) +" Y-cord.:"+(this.Y1+this.translatedY)+"-"+(this.Y2++this.translatedY); }
You might be interested in
This common technique, employed at the edge of a network, eliminates the need for public IP addresses on a private network while
NNADVOKAT [17]

Answer:

NAT

Explanation:

Network Address Translation (NAT) allows nonroutable IP prefixes to hide behind a routable address.it translates IP addresses and ports of its internal hosts, hiding the true endpoint of an internal host on a private network.

Using NAT in this way allows network engineers to efficiently route internal network traffic to the same resources, and allow access to more ports, while restricting access at the firewall.

4 0
3 years ago
Which statement describes the word "iterative"?
Umnica [9.8K]

guess you better read the directions and just read the book yourself and find the answer.

0 0
3 years ago
Read 2 more answers
Society that lives a nomadic life and relies on domesticated animals.
Georgia [21]

Answer:

The answer is Pastoral society

Explanation:

  • Pastoral originates from the Latin word pastor that's meaning is shepherd.
  • The term Pastoral Society stands for a nomadic band of people looking for food with a herd of domesticated animals.
  • It consists of pastoralists that means people whose lives are focused on grazing the land and caring for herds of animals.

3 0
3 years ago
When choosing a new computer to buy, you need to be aware of what operating ____a0 it uses.
Lana71 [14]

Answer:

operating system

Explanation:

There are a lot of operating systems in the market. Ubuntu, red hat, windows, apple Macintosh etc. The choice of an operating system changes all the version of software used in the system. Therefore, while choosing a computer one must be aware of the operating system used in it.

7 0
3 years ago
How do you use hand sanitizer <br><br><br><br><br> I need helpppp
Dimas [21]

Answer:

Scientifically speaking both are equally as effective as long as you thoroughly cover the surface of your hands, massage between your fingers, and under your nails.

Explanation:

3 0
3 years ago
Other questions:
  • What happens to the data in rom when the power is turned off?
    10·1 answer
  • Explain why implementing synchronization primitives by disabling interrupts is not appropriate in a single-processor system if t
    14·2 answers
  • Clarisse is setting the white spaces at the edge of her Word document to be 1 inch. She is setting the _____.
    7·1 answer
  • A palindrome is a word or phrase that reads the same both backward and forward. The word ""racecar"" is an example. Create an al
    15·1 answer
  • Which of the following is true about radio waves? They have short wavelengths. They have high energies. They reveal hot gases. T
    10·2 answers
  • Which of the following is a setting in both the Transparency panel and the Mirror panel?
    10·1 answer
  • What is the purpose of indexing?
    15·2 answers
  • What is another name for repetition in programming?
    11·1 answer
  • A person is sledding down a hill at a speed of 9 m/s. The hill gets steeper and his speed increases to 18 m/s in 3 sec. What was
    6·1 answer
  • Jolly 4 pls link in description
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!