1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
xz_007 [3.2K]
2 years ago
10

Write a java program as follows Write a method called powOfTwo that takes an integer as parameter, computes, and outputs it’s sq

uare
Computers and Technology
1 answer:
Kisachek [45]2 years ago
8 0

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) {

}

You might be interested in
Write a character literal representing the (upper case) letter<br> a.
Vlad1618 [11]
The answer would just be 'A'.  A literal is an element that directly represents a value.  In this case the element that directly represents the value false is simply the character 'A'.  When writing the answer the character should be in single quotes as that defines the value as a single character as opposed to a string or another data type.
5 0
4 years ago
Now, my Laptop has been working since I bought it yesterday it won’t start up and it when it does it overheats and shuts off, th
tekilochka [14]

I would bring it back since it’s not working. No way would I spend hard earned money on something that doesn’t work.

Hope this helps.

7 0
3 years ago
Read 2 more answers
How do i put pics on this app ​
natka813 [3]
It says insert image I think. Or there’s a button that looks like a picture
6 0
3 years ago
What is the full form of ARPANet, WAN,FTP,DCP,HTML,ISP and last WWW​
Lapatulllka [165]

Advanced Research Projects Agency Network,

wide area network

File Transfer Protocol

?

Hypertext Markup Language

Internet service provider

world wide web

6 0
3 years ago
Read 2 more answers
An IT code of conduct is a written guideline that helps determine whether a specific computer action is which of the following?
nadezda [96]
The answer to the question above is the last option: ETHICAL. The IT code of conduct, which is a written guideline, helps in determining whether a specific action is acceptable or ETHICAL. Basically, the IT code of conduct's purpose here is to maintain that the actions being done to the accepted and proper practices.
8 0
4 years ago
Other questions:
  • A claim that is printed and mailed to the carrier site is called a _______copy?
    13·1 answer
  • Gretchen has just started making a new presentation in a series of PowerPoint presentations. The default formatting for text in
    12·1 answer
  • Brainiest<br><br> What do you think should be done for the people whose jobs become automated?
    10·2 answers
  • How many 16-byte cache blocks are needed to store all 64-bit matrix elements being referenced using matlab's matrix storage?
    15·1 answer
  • output device is any peripheral to provide data and control signal to ab information processing system​
    7·1 answer
  • What is artificial Intelligence ?
    11·2 answers
  • How can aspiring illustrators hone their skills?
    13·1 answer
  • Monica is writing a paper, and it needs to contain a certain amount of words. What Word Online feature can she use?IndentingProo
    5·1 answer
  • Speed and security are advantages generally associated with<br> networks.
    9·1 answer
  • In your own view, how can social media be used in teaching and learning in higher education?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!