@@ -0,0 +1,165 @@
+public int count8(int n) %7B%0A  if (n == 0) return 0;%0A  int value = 0;%0A  if (n %25 10 == 8) %7B%0A    value = n / 10 %25 10 == 8 ? 2: 1;%0A  %7D%0A  return value + count8(n / 10);%0A%7D%0A

Create count8.java