The exception message tells you exactly what the problem is: Multiple decimal separators in pattern "#.##0.00"
A decimal separator in this context is a dot, and your formatter pattern contains multiple (more than one, two to be precise) of these.
mvmalderen
Posting Maven
2,612 posts since Feb 2009
Reputation Points: 2,221
Solved Threads: 280
Skill Endorsements: 36
It seems like you haven't defined a setHireDate() method in your ProductionWorker class.
mvmalderen
Posting Maven
2,612 posts since Feb 2009
Reputation Points: 2,221
Solved Threads: 280
Skill Endorsements: 36
How did you implement it? Also in which class did you implement the method in?
Taywin
Posting Maven
2,633 posts since Apr 2010
Reputation Points: 275
Solved Threads: 375
Skill Endorsements: 17
Please post the modified version of your code.
mvmalderen
Posting Maven
2,612 posts since Feb 2009
Reputation Points: 2,221
Solved Threads: 280
Skill Endorsements: 36
Define your setHireDate as follows and put it in your Employee class (remove the other one from ProductionWorker, my bad):
public void setHireDate(String date)
{
hireDate = date;
}
mvmalderen
Posting Maven
2,612 posts since Feb 2009
Reputation Points: 2,221
Solved Threads: 280
Skill Endorsements: 36