public class Input
{
public String test() {
return "sdas";
}
}
public class Input2
{
public String test2() {
return "sdas1";
}
}
/* Complex parts */
public class Input
{
public String test() {
return "sdas";
}
}
public class Input2
{
public String test2() {
return "sdas1";
}
}
/* Facade */
class InputFacade {
private Input input;
private Input2 input2;
public InputFacade() {
this.input = new Input();
this.input2 = new Input2();
}
public void startInput() {
input.test();
input2.test2();
System.out.println(input.test() + input2.test2());
}
}
/* Client */
class MyClass {
public static void main(String[] args) {
InputFacade input = new InputFacade();
input.startInput();
}
}
> sdassdas1