Question
Write a JAVA class called EncryptString, which prompts user for a String, and prints an encrypted version of the String by extracting each character and
Write a JAVA class called EncryptString, which prompts user for a String, and prints an encrypted version of the String by extracting each character and replacing it with the next character. For example, a will be replaced by b, s will be replaced by t, z will be replaced by a and so on. The program should have the main method. Sample output of the program is Enter a String: abcdef The encrypted version of the String "abcdef" is "bcdefg". You can use toLowerCase() or toUpperCase() to change the case of the input string. Make sure the string can also include space in it.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started