@@ -0,0 +1,643 @@
+package ru.job4j.loop;%0A%0A/**%0A * Counter.%0A *%0A * @author mklimentiev%0A * @version 1.0%0A * @since 01.04.2017%0A*/%0Apublic class Counter %7B%0A%0A%09/**%0A%09 * add.%0A%09 * The method add(int start, int finish) calculates and returns the sum of even numbers in the range from start to finish%0A%09 * @param start -- the first parameter%0A%09 * @param finish -- the second parameter%0A%09 * @return -- the sum of even numbers in the range from start to finish%0A%09*/%0A%09public int add(int start, int finish) %7B%0A%09%09int sumOfEvenNumbers = 0;%0A%09%09for (int i = start; i %3C= finish; i++) %7B%0A%09%09%09if (i %25 2 == 0) %7B%0A%09%09%09%09sumOfEvenNumbers = sumOfEvenNumbers + i;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return sumOfEvenNumbers;%0A%09%7D%0A%7D

add Counter.java