public static void main(String args[]) {
		Scanner file1 = null, file2 = null;
		try {
			// Create a scanner to read the file, file name is parameter
			file1 = new Scanner(new File(System.getProperty("user.dir") + "/src/Files/prg404a1.dat"));
			file2 = new Scanner(new File(System.getProperty("user.dir") + "/src/Files/prg404a2.dat"));
		} catch (FileNotFoundException e) {
			System.out.println("File not found!");
			// Stop program if no file found
			System.exit(0);
		}

		//define new vector list
		Vector<Integer> pos = new Vector<Integer>();
		Vector<Integer> neg = new Vector<Integer>();

		//loop through file 1
		while (file1.hasNext()) {
			int value = Integer.valueOf(file1.nextLine());
			if (value >= 0) {
				pos.add(value);
			} else {
				neg.add(value);
			}
		}

		//output header
		System.out.println("Pos(+)\tNeg(-)");
		//ouput table with both columns
		for (int i = 0; i < Math.min(pos.size(), neg.size()); i++) {
			System.out.println(pos.get(i) + "\t" + neg.get(i));
		}
		//ouput table with one column
		for (int i = Math.min(pos.size(), neg.size()); i < Math.max(pos.size(), neg.size()); i++){
			System.out.println(pos.get(i));
		}

		//reset lists
		pos.clear();
		neg.clear();
		
		//loop through file 2
		while (file2.hasNext()) {
			int value = Integer.valueOf(file2.nextLine());
			if (value >= 0) {
				pos.add(value);
			} else {
				neg.add(value);
			}
		}
		//extra space
		System.out.println ("\n\n\n");
		//output header
		System.out.println("Pos(+)\tNeg(-)");
		//ouput table with both columns
		for (int i = 0; i < Math.min(pos.size(), neg.size()); i++) {
			System.out.println(pos.get(i) + "\t" + neg.get(i));
		}
		//ouput table with one column
		for (int i = Math.min(pos.size(), neg.size()); i < Math.max(pos.size(), neg.size()); i++){
			System.out.println("\t" + neg.get(i));
		}

	}