public static String IPandMask(String binIP, String binMask) {
		String b1, b2, b3;
		String result = "";
		for (int i = 0; i < 32; i++) {
			b1 = binIP.substring(i, i + 1);
			b2 = binMask.substring(i, i + 1);
			if (b1.contains("1") && b2.contains("1"))
				b3 = "1";
			else
				b3 = "0";
			result = result + b3;
		}
		return result;
	}