aboutsummaryrefslogtreecommitdiff
path: root/sem5/oop/m7/src/Main.java
blob: d2a1b615463e08ba8e8c3d03fa14d004a71d1759 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
		}
	}

}