Added JAVA implementation for decimal to fraction conversion