Java loop simulation to model a given series and find the sum

Published --