package ru.osetsky;

public class Counter {
	public int add (int start, int finish){
		int count=start;
		int sum;
		while (count>finish) {
			count++;
			if ( (count % 2) == 0) {
				sum = sum + count;
			}		
		}
		return sum;
	}
}
package ru.osetsky;

public class Counter {
	public int add (int start, int finish){
		int sum=0;
		while (start<finish) {
			start++;
			if ( (start % 2) == 0) {
				sum += start;
			}		
		}
		return sum;
	}
}
Add change Counter