Introduction - If you have any usage issues, please Google them yourself
Write a Java program that takes in as argument a String representing a 7-bit pattern and an integer indicating the required type of parity (0 = even, 1 = odd) and outputs the new 8-bit binary number (i.e. consisting of parity bit + 7-bit number) as a String.