Best way to model table with header characters?
I'm looking for the best way to model this table in Java.
I thought about using seperate Arrays but it a) seems cumbersome b) Arrays don't have a key (index) character.
Eventually my method will:
Accept two string inputs (a plaintext & a key)
For example, suppose that the plaintext to be encrypted is:
The person sending the message chooses a keyword and repeats it until it matches the length of the plaintext, for example, the keyword "LEMON":
The first letter of the plaintext, A, is paired with L, the first letter of the key. So use row L and column A of the Vigenère square, namely L. Similarly, for the second letter of the plaintext, the second letter of the key is used; the letter at row E and column T is X. The rest of the plaintext is enciphered in a similar fashion: