Category: Problem Solving

Write a java program to String Encryption.

Write a program to encrypt the given string using following rules and return the encrypted string: Replace the characters at odd positions by next character in the alphabet. Leave the characters at even positions unchanged. Note: – If an odd position character is ‘z’ replace it by ‘a’. – Assume the first character in the