private String getHexObjCode(ArrayList<String> binaryArray) {

		String hexObjCode = "";
		int minAdrUnit = data.getMinAdrUnit();
		int noOfHexCharacters = (minAdrUnit / 8) * 2;

		if (data.getEndian().equals("big")) {
			for (String str : binaryArray) {
				String hex = binaryToHex(str);
				while (hex.length() < noOfHexCharacters)
					hex = "0" + hex;
				hexObjCode += hex + " ";
			}
		}

		else if (data.getEndian().equals("little")) {
			int counter = binaryArray.size() - 1;
			for (; counter >= 0; counter--) {
				String hex = binaryToHex(binaryArray.get(counter));
				while (hex.length() < noOfHexCharacters)
					hex = "0" + hex;
				hexObjCode += hex + " ";
			}
		}

		return hexObjCode;
	}