Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public class SomeProgram {
  2.  
  3. public void run(Dependency1 dependency1, Dependency2 dependency2) {
  4. dependency1.doSomething();
  5. dependency2.doSomething();
  6. }
  7.  
  8. public static void main(String[] args) {
  9. new SomeProgram().run(new Dependency1(), new Dependency2());
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement