Code a method called encrypt to encrypt a String by swapping each pair of its adjacent characters.

Related Book For  answer-question
Posted Date: