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

Solve for n. 12n−10=−58 Plot the solution on the number line.
Think of an advertisement that appeals to emotion. Briefly describe the ad and which emotions it evokes.
pizza is the best when u put pineapple on it. it makes your treats buds go crazy
Tomás is enlarging a square with a side length of 15 cm using this scale factor and scale drawing. Which proportion would Tomás use to solve for the side length
When Kyle wonders if he made the right decision to eat fruit instead of candy, what is he most likely doing? learning about the decision reflecting on the decis
(2,1)(3,1)(0,1)(5,1) A: Function B: Not a function​
An airplane accelerates down a runway at 3.20 m/s2 for 32.8 s until it finally lifts off the ground. How long does the runway need to be and how fast does the p
what is the value of [tex]\sqrt[3]{1331}[/tex]
PLEASE HELP solve x^2 - 64 = 0
A triangle has rotation symmetry that can take any of its vertices to any of its other vertices. Select all conclusions that we can reach from this. A. All side