public class SumOfMultiples {
    private final int sum;

    public SumOfMultiples(int number, int[] set) {
        sum = calculateSum(number, set);
    }

    public int getSum() {
        return sum;
    }

    private int calculateSum(int number, int[] set) {

        int sum = 0;
        int count = 0;

        for (int i = 1; i < number; i++) {

            for (int j = 0; j < set.length; j++) {
                if (i % set[j] == 0) {
                    count++;
                }
            }

            if (count > 0) {
                sum = sum + i;
                count = 0;
            }
        }

        return sum;
    }

}

@@ -1,12 +1,73 @@
+import java.util.Arrays;%0Aimport java.util.stream.IntStream;%0A%0A
 public class
@@ -341,259 +341,118 @@
 m = 
-0;%0A        int count = 0;%0A%0A        for (int i = 1; i %3C number; i++) %7B%0A%0A            for (int j = 0; j %3C set.length; j++) %7B%0A                if (i %25 set%5Bj%5D == 0) %7B%0A                    count++;%0A                %7D%0A            %7D%0A%0A            if (count
+IntStream.range(1,number)%0A                .filter(i -%3E Arrays.stream(set).filter(j -%3E i %25 j == 0).count()
  %3E 0)
- %7B
 %0A   
@@ -468,73 +468,15 @@
     
+.
 sum
- = sum + i;%0A                count = 0;%0A            %7D%0A        %7D
+();
 %0A%0A  

replace forloop