added java code for add/get/delete/modify exercise commands