The add and sub methods are returning an int. You have to store in in an int variable. In line 27 and 28
int sum = d.sum(a,b);
int sub = d.sub(a,b);
The sum and the difference value will be stored in those two variables. You can print those variables if you want to view them in the output.