Update Department.java

added getter method for the id attribute