Java Methods for Financial Engineering