+ 1

Get all the emoloyees details with their manager names

create class employee with fields empid ,name and managerid get the all employees under a manager

3rd Nov 2017, 5:46 PM
Jayavardhan
Jayavardhan - avatar
2 Réponses
+ 3
your question?
3rd Nov 2017, 6:10 PM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 2
https://code.sololearn.com/cXzkw8V4hc2B/#cs ^There you go. It's a very rough idea of what you're looking for. If this was a real project, I would do it differently and would utilize a database for the employees/managers. If I was using a database, then I'd be retrieving the data and comparing it in a totally different way, so just take note of that. However, this should meet the specifications that you gave. Hope it helps.
3rd Nov 2017, 7:15 PM
AgentSmith