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.

LANGUAGE: JAVA

CHALLENGE:

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.

SOLUTION:

public class Telephone{
   public static void printNumber(String number){
      System.out.println(number) ;
   }
}