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

  1. Create a Java program.
  2. The class name for the program should be 'EncryptTextMethods'.
  3. 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.
  1. Create a second method.
  2. The name of the method should be decryptString.
  3. 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.
  4. The program should read an input String using the Scanner method.
  5. The input value should be passed to the encryptString() method and the encrypted string should be passed to the decryptString() method.
  6. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!