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

15 liters increased by 60 percent
What does Queen Esther ask of the king the second time she appears before him?
What are the 4 types of processes that cycle matter through the biosphere give examples?
what two european countries were the first to explore
Use Constitutional Convention in a sentence to show you understand what it means.
Which of the following statements about paper recycling is not true? a. Recycling one ton of newspaper can save 100 trees. b. Recycling paper can lead to 74% le
16/60 fraction in simplest form
Is the ratio 4.2:1.5 proportional to the ratio 12.6:4.5? Explain. PLEASE HELP I SUCK AT MATH!!!!
write the expressions in standard form 1/8(2x+4)
How is sun related to nuclear, electromagnetic, and heat energy?