@@ -0,0 +1,856 @@
+package melisProjectEuler;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Apublic class EvenFibonacciNumbers %7B%0A%0A%09/**%0A%09 * @param args%0A%09 */%0A%09static private int DEFAULT_LIMIT = 4000000;%0A%09static private List%3CInteger%3E fibNums = new ArrayList%3CInteger%3E();%0A%09static private int j = 2, limit = 0, sum = 0;%0A%09%0A%09private static void evenFibonacci()%7B%0A%09%09fibNums.add(0,1);%0A%09%09fibNums.add(1,1);%0A%0A%09%09while(limit %3C= DEFAULT_LIMIT)%7B%0A%09%09%09limit = get(j);%0A%09%09%09fibNums.add(j, limit);%0A%09%09%09if(limit%252 == 0) %7B%0A%09%09%09%09sum += fibNums.get(j);%0A%09%09%09%09%7D%0A%09%09%09j++;%0A%09%09%7D%09%0A%09%7D%0A%09static private int get(int i)%7B%0A%09%09return (fibNums.get(i-1)+fibNums.get(i-2));%0A%09%7D%0A%09static private void result(int sum, int j)%7B%0A%09%09System.out.println(%22sum of evens: %22 + sum);%0A%09%09System.out.println(%22last fibonacci: (index)%22 + j + %22, %22+fibNums.get(j-1));%0A%09%7D%0A%09public static void result()%7B%0A%09%09evenFibonacci();%0A%09%09result(sum, j);%09%0A%09%7D%0A%7D%0A

Create EvenFibonacciNumbers.java