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

during the run she drinks 4 bottles of water containing 750ml each how many litres of water has she drank in total in litres
Today, the Gettysburg Address can be found in _____.
Did the coahuiltecans farm?
Which nutrient would you take to maintain healthy eyesight?
Identify the correct sentence. a. We want to go to Mardi Gras for Spring break. b. We want to go to Mardi gras for spring break. c. We want to go to mardi gr
speed or velocity are more helpful to a pilot why
which is an example of how ecosystems on earth affect each other
What is the area of the moon?
when h has the value 6 calculate 6h - 7
What are the cost of "Freebie" items?