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
Bloodborne pathogens travel by way of blood cells and can only be spread by person-to-person contact with infected blood
Eva8 [605]
That is incorrect. It is only contagious if blood is injected into person who is not infected.
5 0
3 years ago
Read 2 more answers
Based on the module,
svp [43]

Answer:

Explanation:

One group of students did an experiment to study the movement of ocean water. The steps of the experiment are listed below.

Fill a rectangular baking glass dish with water.

Place a plastic bag with ice in the water near the left edge of the dish.

Place a lighted lamp near the left edge of the dish so that its light falls directly on the plastic bag.

Put a few drops of ink in the water.

The student did not observe any circulation of ink in the water as expected because the experiment had a flaw. Which of these statements best describes the flaw in the experiment? (2 points)

Not enough ink was added.

Not enough water was taken.

The dish was too small for the experiment.

The lamp and the ice bag were at the same place.

8 0
3 years ago
Review how to write a for loop by choosing the output of this short program.
Natalija [7]

This for loop will output:

0

2

4

The range(3) is all the integers between 0 inclusive and 3 exclusive. 0, 1, 2.

Every iterations through the for loop, we multiply the value of each number by 2 and print it to the console.

0 * 2 = 0

1 * 2 = 2

2 * 2 = 4

I hope this helps.

5 0
3 years ago
Read 2 more answers
When you use cloud computing, what do you need to access your files and applications?
iren [92.7K]

<u>Explanation:</u>

Cloud Computing is the use of hardware and software to deliver a service over a network means on the internet. With cloud computing, users can access files and use applications from any device that can access the Internet. An example of a Cloud Computing provider is Email.

When you have a lot of data you can upload on the cloud server. To upload your data on cloud you must have a account and permission to save and upload your data.

<u>Example is:</u> data storage sites

8 0
3 years ago
Which telecommunications offering is a component of social media? A.)web conferencing
vichka [17]
I would say C. podcast??? not for sure
7 0
3 years ago
Read 2 more answers
Other questions:
  • Write a program named TypingGrades that allows a user to enter a student’s number of words typed. The output is the letter grade
    9·1 answer
  • Which was the first media-sharing website that allowed users to submit their own work on the site?
    7·1 answer
  • "You are setting up a new subnetwork on an existing network. Management has asked that you use existing cabling that the company
    14·1 answer
  • Types of computer that we use in our daily life​
    13·2 answers
  • &gt;What is the output of the following code:
    5·1 answer
  • Question #5
    15·2 answers
  • Three different numbers need to be placed in order from least to greatest. For example, if the numbers are ordered 9, 16, 4, the
    9·1 answer
  • I cant tell if tubbo is a bee or a goat <br>or could he be human in the smp
    12·1 answer
  • Which tabs are expandable and collapsible
    14·1 answer
  • CIS261: Python Programming I home<br>&gt;<br>6.8: LAB: Miles to track laps
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!