Answer:
public class Telephone {
public static String getFullNumber(String a) {
return ("718-" + a);
}
}
In the explanation section we show the method in use with some displayed output
Step-by-step explanation:
The code to create an object of the class and use its method getFullNumber(String a) is given below:
public class TestClass {
public static void main(String[] args) {
Telephone TelephoneOne = new Telephone();
String newNumber=TelephoneOne.getFullNumber("080657288");
System.out.println(newNumber);
}
}