hulk815 hulk815
  • 03-06-2022
  • Computers and Technology
contestada

Write a java program as follows Write a method called powOfTwo that takes an integer as parameter, computes, and outputs it’s square

Respuesta :

Аноним Аноним
  • 03-06-2022

Answer:

public static int powOfTwo(int input) {

 return input*input;

}

You will have to call this method in main
for printing it, write

System.out.println(powOfTwo(your number));

in public static void main(str[]args) {

}

Ver imagen Аноним
Answer Link

Otras preguntas

A business​ ________ is a logically related set of activities that defines how specific business tasks are performed.
what does it mean that japan and korea were ""countries in china’s orbit""? why would they adopt confucianism and buddhism at this time (think back to the song
Decision goes through different processes. Elobrate
help me solve it pls
bricout m, petre a, amini-adle m, et. al.: vogt-koyanagi-harada-like syndrome complicating pembrolizumab treatment for metastatic melanoma. j immunother
HELP PLEASE!! it's physics and I don't know what it is please help! Here is a picture of it.​
What was the most lucrative product of the Chesapeake colonies? gold tobacco corn cotton ​
Saturation is how strong the ____ is.​
English multiple choice pls help. Will give brainliest
Although europe is a politically fragmented continent with people separated by many political borders,