Write a Java program with what is requested below.
A - Declare the variables X, Y, and Z of type int. B - Assign 10 to variable X. C - Assign 2 to variable Y. D - With the help of variable Z, reverse the values of X and Y. E - Print the values of the variables X, Y and Z respectively.
Obs. I'm starting the Java course now and I can not ask that question, can anyone help me?