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

How many metres in 3/4 of 1 kilometer?
Help me please I ned help just help with at least one!
Pizza Planet is running a special: 3 pizzas for $16.50 what is the unit rate for one pizza? (explain)
The mass of Hinto's math book is 4,458 grams. What is the mass of 4 math books in kilograms?
Three baseball fans estimated the top speed of a baseball pitcher’s fastball. The table shows their estimates. The top speed of the pitcher’s fastball is known
what is the answer to colby has 61 jars of spices.he wants to arrange them in arrays.what arrays could he use to arrange them
Select all that apply. Receptors that provide animals with information from the external environment are located in the _____. ears skin blood vessels joints to
164 is 55% of what number? Please somebody help me
A recipe asks for cup of milk. How many cups of milk are needed for recipes? A. cup B. cup C. cups D. cups
Which blood type can be transfused into a patient who has blood type A–?