diff options
author | Julian T <julian@jtle.dk> | 2020-09-29 15:10:59 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-09-29 15:10:59 +0200 |
commit | 2764a232788e6d820ebe95419730a319eea1bd3c (patch) | |
tree | 7b331f2eb5a7db0fa40e67427117c3c79f1279df /sem5/oop/m7/src/Main.java | |
parent | fef26c3cd47c1e6d3a9dc7592db5721b996ead6b (diff) |
Added java and net assignments
Diffstat (limited to 'sem5/oop/m7/src/Main.java')
-rw-r--r-- | sem5/oop/m7/src/Main.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sem5/oop/m7/src/Main.java b/sem5/oop/m7/src/Main.java new file mode 100644 index 0000000..d2a1b61 --- /dev/null +++ b/sem5/oop/m7/src/Main.java @@ -0,0 +1,20 @@ +public class Main { + + public static void main(String[] args) { + System.out.println("YEAH LETS GO"); + + try { + Node n = new Node(args[0], args[1]); + InputHandler h = new InputHandler(n); + for (int i = 2; i < args.length; i++) { + n.addNeighbor(args[i]); + } + + h.start(); + n.start(); + } catch (Exception e) { + System.err.printf("Fatal err: %s%n", e); + } + } + +}
\ No newline at end of file |