You are writing a program that encrypts or decrypts messagesusing a simple substitution cipher. Your program will use twoconstant strings. One will represent the code for encryption: goingfrom the original message (called the plaintext) to the encryptedversion of the message. The other will be“abcdefghijklmnopqrstuvwxyz” (the lowercase alphabet. Your programwill ask the user whether they want to 1) encrypt a message, 2)decrypt a message, or 3) quit. If they choose encrypt or decrypt,you will then get the message from the user and change it to alllower case. Then you will print out the encrypted or decryptedmessage character by character, using the information in the codeto be used for encryption or decryption. The String you will usefor encryption is “csimuylangpwzfrxbvhdtejqko”.
***Java language***