Java Methods for Financial Engineering: Applications in Finance and Investment