Adapting multiple interfaces

  • 20
  • Locked
Adapt IncomeData to the Customer and Contact interfaces. The adapter class is IncomeDataAdapter. Initialize countries before running the program. Mapping between country codes and country names: UA Ukraine US United States FR France If necessary, pad phone numbers with zeros to get 10 digits long (s
You can't complete this task, because you're not signed in.
Comments(5)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
FelixLevel 19
22 April, 22:48
"If necessary, pad phone numbers with zeros to get 10 digits long (see the examples)." Which examples?
HenriqueLevel 19 , São Paulo
Monday, 14:49
I think it's referring to line 45. The given number is 9 digits long ("991234567", line 33), and it's padded with a "0" to make it 10 digits long on line 45 (after the country phone code).
Dave AndreaLevel 25
8 April, 19:38
I couldn't figure out why, but when using regex for the phone number, it only accepted it with a "." for each place value and not a "/d". In case anyone else gets stuck on that.
Naina GuptaLevel 20 , Kulu
11 February, 17:46
Can't figure out what I am doing wrong when forming the phone number.
RomanLevel 41
13 February, 06:30
Please post your question with the attached solution in the section Help.