http://1.bp.blogspot.com/-h0iSP0j45QA/VSOmeo1iqfI/AAAAAAAABBM/GKmGBg4gCd0/s1600/Java%2Bcode%2Bfor%2Bgiven%2BSeries.png