Expanding on the Java Code

Expand on the java code. This has to run correctly when tested.

Prompt the user to input an integer, a double, a character, and a string, storing each into separate variables. Then, output those four values on a single line separated by a space. Extend to also output in reverse. Extend to cast the double to an integer, and output that integer. Finish reading other items into variables, then output the four values on a single line separated by a space.