Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class SomeProgram {
- public void run(Dependency1 dependency1, Dependency2 dependency2) {
- dependency1.doSomething();
- dependency2.doSomething();
- }
- public static void main(String[] args) {
- new SomeProgram().run(new Dependency1(), new Dependency2());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement