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
salantis [7]
3 years ago
8

Write a method that takes a Rectangle as a parameter, and changes the width so it becomes a square (i.e. the width is set to the

value of the length) (java)
Computers and Technology
1 answer:
Bumek [7]3 years ago
3 0

Answer:

Explanation:

The following code is written in Java, it is a function/method that takes in the length and width of the Rectangle as parameters and then overwrites the width to match the length. Then it prints both the length and width.

   public static void rectangleToSquare(int width, int length) {

       width = length;

       System.out.println("Width: " + width);

       System.out.println("Length: " + length);

       

   }

You might be interested in
Carla needs to list the role for each consultant. Those with four or more years of 26 15 experience take the Lead role. Otherwis
saveliy_v [14]

Answer :

The output is attached below

Explanation:

The following formula needs to be entered into cell N5:

=IF($M5>=4,"Lead","Associate")

4 0
3 years ago
A _____ is a tool that helps you research information on the Internet.
never [62]

a search engine is a tool that helps you reaserch information on the internet, because it is what you use to type in the info you want to learn more about

6 0
4 years ago
Where do you find the Merge Style dialog box to merge styles from one workbook to another? in the Home tab, then Styles group in
DiKsa [7]

Answer:A in the home tab then styles group

Explanation:

3 0
3 years ago
Read 2 more answers
Which of the following provides button to facilitate
Triss [41]

Answer:

fdsjhvnbldisuacvnndioavndaf vdsieaonvafvno[avinagb difjiiojdfoigp;afdsigadpg;

Explanation:

5 0
3 years ago
Always follow the routine "clean up while in use and clean up before keeping it".
Anvisha [2.4K]
This answer out of the true or false or true
5 0
3 years ago
Other questions:
  • Dfd symbols are referenced by using all ____ letters for the symbol name.
    9·1 answer
  • Does any one have 2 reasons it would be a good idea to have a glow in the dark TV.
    5·1 answer
  • Why is Brainly always deleting either my answers or my questions? I am putting nothing inappropriate in them. Can someone answer
    7·2 answers
  • Which access database object is best to use for the basis of a report when specific criteria must be applied to the report?
    12·2 answers
  • A machine on a 10 Mbps network is regulated by a token bucket algorithm with a fill rate of 3 Mbps. The bucket is initially fill
    12·1 answer
  • What is the combination of the mechanical or digital process of film production and the illusion or illusions created in the min
    12·1 answer
  • Complete function PrintPopcornTime(), with int parameter bagOunces, and void return type. If bagOunces is less than 2, print "To
    5·1 answer
  • What intangible benefits might an organization obtain from the development of an
    5·2 answers
  • The amount of white space or vertical space between the lines of the text in a paragraph is called line spacing.
    13·1 answer
  • Databases containing the research, writing and studies conducted by Academic
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!