add java translation for sum, diff, product functions
java translator: translate int values to double