IBM interview question

Write a Java Code to reverse the words in a String,