Updated Java Code 06-03-2013