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. vaporization b. freezing c. condensation d. melting
Is Girl is subject Or what? Kindly answer me
Cranberry juice costs $6.30 per quart and apple juice costs $3.60 per quart. Terrence wants to know how many quarts q of cranberry juice he should mix with 4 qu
I don’t understand how to do the question
On what grounds do hutchinson and winthrop base their respective arguments? review
N the _______ stage of the body's reaction to stress, the body becomes extremely susceptible to disease because it seems to lose its ability to respond to any n
X+Y-Z=19 2X-3Y+Z=13 3X-5Y-6Z=-15
How does the writer create humor with the second sentence? Select the two best answers.?
When new goods are introduced, consumers have more variety from which to choose. as a result, each dollar is worth a. more, and the cost of living increases. b.
I'm kinda debating whether it decreases...I dunno I'm asking to clarify, and if its the answer I picked please explain your why Thx If two objects are close to