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 { public class App {
private static final Logger logger = LogManager.getLogger(App.class); private static final Logger logger = LogManager.getLogger(App.class);
public static void main(String[] args){ public static void main(String[] args){
try { try {
Connection connection = new Connection("localhost"); Connection connection = new Connection("localhost");
Interactive interactive = new Interactive(connection.getIn(), connection.getOut());
interactive.beginLoopAs(connection.isHost());
} catch (IOException exception) { } catch (IOException exception) {
exception.printStackTrace(); exception.printStackTrace();