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

8. How were people seated in the Coliseum?
tip for artists: if you are using black paints i recommend folkart brand because it’s easy to rub off of your hands that’s all! have a good day/night! :D
a page of a calendar is 45 cm long and 26 cm wide. what is its area?​
Nombres para un noticiero
would n-3/n+3 cancel out?
Please help!!!!!I’ll mark you as brainliest!!!!!
Independent PracticeInfer the connotative meaning of the animal name in each sentence. You may work wita partner and agree on it.1.Everyone studies hard in Zool
Define the term 'change'​
Capitalization and punctuation
Un atleta tiene en un instante dado una velocidad de 4 m/s. Si a partir de ese instante y durante 2 s adquiere un MRUA con una aceleración de 3 m/s2. Calcula la