public static BigInteger mergeResult() {

		BigInteger finalResult = new BigInteger("1", 10);

		synchronized (resultList) {
			if (resultList.size() != threadCon) {
				try {
					resultList.wait();
				} catch (InterruptedException e) {
				}
			}
		}

		if (resultList.size() > 0) {
			for (int i = 0; i < resultList.size(); i++) {
				finalResult = finalResult.multiply(resultList.get(i));
			}
			return finalResult;
		} else {
			return BigInteger.ZERO;
		}
	}