Advertisement
Guest User

Untitled

a guest
May 6th, 2018
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1. public class TestService implements ITestService {
  2.  
  3.     @Override
  4.     public Integer getTestValue() {
  5.         return 42;
  6.     }
  7.  
  8.     @Override
  9.     public Integer getAnotherTestValue() {
  10.         return 2;
  11.     }
  12.  
  13.     @Override
  14.     public Integer calculateAnswer() {
  15.         Integer testValue = getTestValue();
  16.         Integer anotherTestValue = getAnotherTestValue();
  17.  
  18.         return testValue * anotherTestValue;
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement