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
Stolb23 [73]
3 years ago
9

Write the definition of a class Telephone. The class has no constructors and one static method printNumber. The method accepts a

String argument and prints it on the screen. The method returns nothing.
Computers and Technology
1 answer:
cricket20 [7]3 years ago
5 0

Answer:

The program to this question can be given as:

Program:

public class Telephone //define class Telephone.  

{  

public static void printNumber(String s) //define method  

{  

System.out.print(s); //print value.  

}  

public static void main(String[] args) //define main method  

{  

String s ="ABCD"; //define variable s and assign value.  

printNumber(s); //calling function.  

}  

}

Output:

ABCD

Explanation:

In above java program we define a class that is "Telephone". Inside the class we define a function that is "printNumber" in the function we pass one string value that is "s" and the function will not return any value, because we use return type void. In this function we print pass variable value.

Then we define the main method inside the method we define a string variable and assign a value that is s = "ABCD" and call the function that prints its value.

You might be interested in
Web Services: a. Is a hardware application b. Is a software application c. Is an enterprise system d. Is a single database
Simora [160]

Answer:

9qoqoqoqoqooq0qqqqqqqq

7 0
3 years ago
If any one has mincraft on ps4 bedrock we can finish building a BIG city world all we need to put is a shop and money dispensers
sasho [114]

Answer:

Cool

Explanation:

7 0
3 years ago
Read 2 more answers
What does aperture control? A)amount of light the image sensor captures when taking a photo. B)how sensitive the camera is to in
My name is Ann [436]

Answer:

How sensitive the camera is to incoming light.

Explanation:

8 0
4 years ago
Read 2 more answers
In Microsoft Word, when you highlight existing text you want to replace, you are in
Andreyy89
<span>In Microsoft Word, when you highlight existing text you want to replace, you are in insert mode. You know if you are in insert mode if</span><span> you see the word "Insert" in the Status bar and any text you paste in will push aside text on either side of the cursor.</span>
6 0
4 years ago
If known vulnerabilities in software are entry points for an attacker, why are the software vulnerabilities not corrected before
Evgesh-ka [11]

Answer:

we dont knoqw

Explanation:

7 0
2 years ago
Other questions:
  • What is a fragment shader? Question 5 (3 marks) What is trilinear filtering?
    8·1 answer
  • A dog walks 10 km north in 2 hours and then 8 km south in 1 hour.
    10·1 answer
  • Assume that Precinct Report is a structured type with these fields,address (a string),and three int fields which are counts of c
    12·1 answer
  • How do you think someone has programmed computer calculator?​
    13·1 answer
  • Big data are used to _____. Select 3 options.
    5·1 answer
  • For python how do I ask the user how many numbers they want to enter and then at the ending add those numbers up together?
    10·1 answer
  • 4. In computers, an integer can be represented by more than 8-bit, what is the largest positive integer that
    9·1 answer
  • Someone, please help me w/ king.com
    10·1 answer
  • What does it mean that the right mouse button is context-sensitive?
    15·1 answer
  • How does beamforming improve network service?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!