@@ -0,0 +1,584 @@
+package by.vorokhobko.4_Cycles;%0A%0A/**%0A* Counter.%0A*%0A* Class Counter needs to perform the calculation amount in the range part 001, lesson 4.%0A* @author Evgeny Vorokhobko (vorokhobko2011@yandex.ru).%0A* @since 10.12.2016.%0A* @version 1.%0A*/%0A%0Apublic class Counter %7B%0A%09/**%0A%09* The class field.%0A%09* The method calculates the sum of even numbers in the range.%0A%09* @param start - start.%0A%09* @param finish - finish.%0A%09* @return tag.%0A%09*/%0A%09public int add(int start, int finish) %7B%0A%09%09int sum = 0;%0A%09%09for (; start %3C finish; start++) %7B%0A%09%09%09if (start %25 2 == 0) %7B%0A%09%09%09%09sum = sum + start;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return sum;%0A%09%7D%0A%7D

add class Counter