Hi, this quick topic which can be removed quickly after investigating the instructions of Java / International Calling Connoisseur. Task 3 says :
Implement the getCountry method that takes a map of dialing codes and a dialing code and returns the country name with the dialing code.
But here is the signature of the method:
public String getCountry (Integer code)
And the method is called like this:
dialingCodes.getCountry (55);
I think the instructions should be updated to :
Implement the getCountry method that takes a dialing code and returns the country name with the dialing code.
Have a nice day!
I just finished the exercises and noticed that task 6 is incomplete. The following condition is not checked and I managed to pass all 6 tests without implementing it:
Do nothing if the country is not in the map (as this method is meant to only help correct mistakes).
I think a new test case should be added where the country is not in the map.
I think you’re right on both accounts. For task 3, it doesn’t take a map, so shouldn’t mention it all.
For task 6 though, I wonder if the requirement “Do nothing if the country is not in the map (as this method is meant to only help correct mistakes)” is really needed? The down side with adding a test case is that it could invalidate solutions that have already been submitted (at the moment, there are around 500 solutions). I’m thinking we could remove the requirement from the instructions. This way, it doesn’t matter which way students have chosen to handle it.