java methods for financial