Java exercise: Create a class about encoding with the following information.
- A public static method: it will accept two String parameters, your text to be encoded and an encrypting key. It returns a String of your encoded text.
- A public static method: it will accept two String parameters, your text to be decoded and an encrypting key. It returns a String of your decoded text.
- A private method: it will accept one String, your encrypting key, and returns an ASCII offset to be added to each character during encoding.
SumOfDiscriminants(Qarray: QuadraticEquation[1) method: it will calculate the sum of discriminants of each element of the Qarray which it takes as a parameter.
SumOfDiscriminants(Oarray: QuadraticEquation[D) method: it will calculate the sum of discriminants of each element of the Qarray which it takes as a parameter.