public static boolean validateDecSubnetMask(String inDecimalSubnetIp) {
		String[] ipn = inDecimalSubnetIp.split("\\.");
		try {
			if (ipn.length == 4) {
				for (int i = 0; i < 4; i++) {
					int num = Integer.parseInt(ipn[i].trim());
					if (num < 0 || num > 255)
						throw new NumberFormatException();
				}
				return true;
			}
		} catch (NumberFormatException e) {
		}
		;
		return false;
		/*
		 * try { String binSubnetMask = toBinaryString(inDecimalSubnetIp);
		 * 
		 * if(getDefaultSubnetMaskClassType(inDecIPAddress) == CLASS_A_TYPE){
		 * if(binSubnetMask.substring(0,8).equals("11111111")){
		 * if(validateSubString(binSubnetMask.substring(8,32))){ return true; }
		 * return false; } return false; } else
		 * if(getDefaultSubnetMaskClassType(inDecIPAddress) == CLASS_B_TYPE){
		 * if(binSubnetMask.substring(0,16).equals("1111111111111111")){
		 * if(validateSubString(binSubnetMask.substring(16,32))){ return true; }
		 * return false; } return false;
		 * 
		 * }else{
		 * if(binSubnetMask.substring(0,24).equals("111111111111111111111111")){
		 * if(validateSubString(binSubnetMask.substring(24,32))){ return true; }
		 * return false; } return false; } } catch (Exception e) { return false;
		 * }
		 */
	}