1 package example; 2 3 public interface MathService { 4 /** 5 * Adds two integers. 6 */ 7 public int add(int a, int b); 8 9 /** 10 * Subtract two integers. 11 */ 12 public int sub(int a, int b); 13 14 /** 15 * Multiply two integers. 16 */ 17 public int mul(int a, int b); 18 19 /** 20 * Divide two integers. 21 */ 22 public int div(int a, int b); 23 } 24