summaryrefslogtreecommitdiff
path: root/Java-Kompendium/kap20/2/src/main/java/App.java
blob: 417e73adb1082bdf02b2e06ff05cb2b5e27f7d57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
public class App {
    public static void main(String[] args) throws InterruptedException {
        var server = new Server();
        server.start();

        server.lock.acquire();
        Client.client();
        server.lock.release();

        Runtime.getRuntime().exit(0);
    }
}