Question: Java Programming. please follow the directions below for this assignment Create a Java program. The class name for the program should be 'EncryptTextMethods'. In the
Java Programming.
please follow the directions below for this assignment
- Create a Java program.
- The class name for the program should be 'EncryptTextMethods'.
- In the program you should perform the following:
- You will modify the EncryptText program created in a previous assignment.
- You should move the logic for encrypting text from the main method into a method named encryptString.
- The encryptString method should have a single String argument and return a String value.
- Create a second method.
- The name of the method should be decryptString.
- In the program you should perform the following:
- The method should have a single String argument and return a String value.
- This method should reverse the encryption process by subtracting one from each character in the String argument passed to it.
- The return value should be the result of the decrypting process.
- The program should read an input String using the Scanner method.
- The input value should be passed to the encryptString() method and the encrypted string should be passed to the decryptString() method.
- The program should output the input string, the encrypted string and the decrypted string.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
