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

what do you think the golden rule means? is this evidence of a grand design a massive freak coincidence or something else
what is the recommended amount of servings for milk or milk products per day? a. 5 cups b. 3 cups c. 1 cup
your monthly living expenses are $1500 on an income of $1,650 per month. your goal is to have an emergency fund of 4 times your monthly living expenses. your em
if y=3x 2 find the value of y when x=-3
What is the object of the preposition in the following sentence? Jaime walked cautiously through the dark alley.
What Possible suggestions you can give with animal breeders
Indians who assimilated more than most included the....
How might you determine if the patient is leaving with a full understanding of the treatment plan?
Why did president franklin d. roosevelt establish social security?
Why was the election of 1800 a turning point in American history?