Yes this will calculate new salary and display as per new raise. But does this set the new salary to the employye object?? 

You are missing employee.setSalary(newSalary)