Java Sum Example