sygnał zatrzymania Java Catch
Runtime.getRuntime().addShutdownHook(new Thread(() -> System.out.println("Game over")));
Im_Arxus
Runtime.getRuntime().addShutdownHook(new Thread(() -> System.out.println("Game over")));