When I run my client server project I am getting a ClassCastException error??? My method finds an employee by the ID, Here are the specs I am to use.
variables
ArrayList emps;
Employee emp; I have an Employee class
Test the map for the passed key
if found
set the emps var to the arraylist found by doing a get on the byId map using the passed arg
extract the one employee outof the map using the map's get(0) method
execute the employees toString() to represent this emp as a
string and return the stringto the protocol
otherwise return string that says not found
here is the code: