Write the definition of a class Telephone. The class has no constructors and one static method getFullNumber. The method accepts a String argument and returns it, adding 718- to the beginning of the argument.
LANGUAGE: JAVA
CHALLENGE:
Write the definition of a class Telephone. The class has no constructors and one static method getFullNumber. The method accepts a String argument and returns it, adding 718- to the beginning of the argument.
SOLUTION:
public class Telephone{ public static String getFullNumber(String s){ return ("718-" + s) ; } }