Could do scanner, then store the input, then reverse it and then print out the reverse.