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

Which list is organized from SMALLEST to LARGEST? It is Planet,Solar System,Galaxy,Universef
What is racial 2 times racial 8
Energy is released to be used by a cell when a phosphate group is removed from ADP to form ATP added to ADP to form ATP removed from ATP to form ADP added to AT
how many carbons in amino acids?
Genetic information is carried in ATP molecules. True False
you have three numbers two of the numbers are 24 and 42 what is the gfc of these two numbers the third number is greater than 42 and does not change the gcf. Wh
Why do you think Columbus saw only the coastal area of Mesoamerica? Please help. Thanks.
The organ with the most acidic contents in the digestive system is the a. pancreas c. stomach b. mouth d. small intestine
help please asap!!!!!!!!!!!!!!!!!!!
In Act III, Scene 1, who hears these words from Titania? Thou art as wise as thou art beautiful. A. Puck B. Oberon C. Bottom D. Peaseblossom