Here is how you can get user input from console:
Java Tips - How to read input from console
And for reversing your string, you have two choices:
1. You can use reverse method of StringBuffer:
StringBuffer b = new StringBuffer("Hello").reverse();
2. Create a new string based on characters in the input string
For this one, you will again have a string buffer and append to it the characters of your String one by one. To do that in reverse order, you will create a loop which starts from the length of your string to 0. You will get character of the string in that position with charAt(int i) function of String and append it to your string buffer.