import java.util.*; public class Hamming { //Return the Hamming-Encoding of a Bit-String with specified Parity // @param dataBits: the binary digits of the data to be encoded // @param evenParity: true (EVEN parity), false (ODD Parity) public static int[] encoding(int[] dataBits, boolean evenParity) { return null; } //Return the data bits obtained by interpreting a Hamming code-word // with SINGLE ERROR Correction // @param codeBits: the code bits to be decoded // @param evenParity: true (EVEN parity), false (ODD Parity) public static int[] decoding(int[] codeBits, boolean evenParity) { return null; } }