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

What were the impacts of the 13th, 14th, and 15th Amendments?
PLEASE HELP ILL MARK BRAINLIEST!!!!! describe their understanding of a theme in a work of literature (1-2 sentences). Please, keep in mind the difference betwee
The center of our galaxy lies in the direction of the constellation of:.
how to calculate density
short songs you wrote!!!
Hello guys I'm Filipino ​
Which of the following is a TRUE statement about curing STIs? A. Many STIs can be cured with proper treatment, but some can only be managed. B. All STIs can be
Solve this math please
When was harper lee considered a success as a writer.
What is the only state that borders only one state.