Unsure of where I am going wrong with this solution. I am using Java. Workbench
ID: 3913968 • Letter: U
Question
Unsure of where I am going wrong with this solution. I am using Java.
Workbench ? 0 PREV NEXT Exercise 20642 x WORK AREA RESULTS Write the definition of a class Telephone. The class has no constructors, one instance variable of type String called number, and two static variables. One is of type int called quantity; the other is of type double called total. Besides that, the class has one static method makeFullNumber. The method accepts two arguments, a String containing a telephone number and an int containing an area code. The method concatenates the two arguments in the following manner: First comes the area code, then a dash, then the telephone number. The method returns the resultant string x: 8 of 8: 2018-07-04 14:18:37 _ w SUBMIT 1public class Telephone 2 4 5 6 7 private String number; private static int quantity; private static double total; public static makeFul1Number (String number, int area) return tostring(number -" area) 10Explanation / Answer
BSolution:-
According to me you are missing the Return type in makeFullNumber method:-
"public static String makeFullNumber(String number, int area) "
Please use this and your issue will be solved.
=================SOLUTION ENDS=======================
Note:- Please upvote if it helped. Thanks!!
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.