You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
429 B

  1. package xyz.nextn;
  2. public class Main {
  3. public static void main(String[] args) {
  4. Server server = new Server(1111);
  5. new Thread((Runnable) server).start();
  6. System.out.println("i kau nixx!!");
  7. try {
  8. Thread.sleep(20 * 1000);
  9. } catch (InterruptedException e) {
  10. e.printStackTrace();
  11. }
  12. System.out.println("Stopping Server");
  13. server.stop();
  14. }
  15. }