Write a function in Java to reverse a given string without using any library function.

Posted Date: