@@ -0,0 +1,336 @@
+// http://codingbat.com/prob/p134174%0A%0Apublic int%5B%5D copyEvens(int%5B%5D nums, int count) %7B%0A  int%5B%5D newArray = new int%5Bcount%5D;%0A  %0A  for (int i = 0, j = 0; i %3C nums.length; ++i) %7B%0A    if (count == 0) %7B%0A      break;%0A    %7D%0A    else if (nums%5Bi%5D %25 2 == 0) %7B%0A      newArray%5Bj%5D = nums%5Bi%5D;%0A      j++;%0A      count--;%0A    %7D%0A  %7D%0A  %0A  return newArray;%0A%7D%0A

Create copyEvens.java