I'm going to take a guess and say that scheduledProcess.getResponseTime(0) returns a primitive int, and you are trying to do something like 0.add() to it, which doesn't work because primitives don't...