Executable class now starts interactive mode

This commit is contained in:
Marcin Kostrzewski 2020-10-29 16:45:52 +01:00
parent 9c5e820c5f
commit 5f7efe2357

View File

@ -8,10 +8,11 @@ import java.io.IOException;
public class App {
private static final Logger logger = LogManager.getLogger(App.class);
public static void main(String[] args){
try {
Connection connection = new Connection("localhost");
Interactive interactive = new Interactive(connection.getIn(), connection.getOut());
interactive.beginLoopAs(connection.isHost());
} catch (IOException exception) {
exception.printStackTrace();