@@ -0,0 +1,415 @@
+// http://codingbat.com/prob/p109783%0A%0Apublic boolean haveThree(int%5B%5D nums) %7B%0A  if (nums.length %3C 5) %7B // We need at least 5 elements to have 3 seperate 3's.%0A    return false;%0A  %7D%0A  %0A  int threeCount = (nums%5B0%5D == 3) ? 1 : 0;%0A  %0A  for (int i = 1; i %3C nums.length; ++i) %7B%0A    if (nums%5Bi%5D == 3) %7B%0A      if (nums%5Bi-1%5D == 3) %7B%0A        return false;%0A      %7D%0A      threeCount++;%0A    %7D%0A  %7D%0A  %0A  return (threeCount == 3);%0A%7D%0A

Create haveThree.java