You have been hired by a company to write a Java application program that will encrypt data so that it may be transmitted more securely. Your program should declare a variable to store a four-digit integer and give it a value from the console window. Your program should encrypt this sequence as follows: replace each digit by (the sum of that digit plus 7) modulus 10. Then swap the first digit with the third, and swap the second digit with the fourth. Your program should display the encrypted data to the console window.
Input a four-digit integer.
Display the encrypted data.
Encrypted data is: 0189 Encrypted data is: 9810