Ad
Code
Diff
  • interface Kumite {
      static boolean hasThree(int x) {
        return !(x + "").replace("3","").equals((x + "")) ;
      }
    }
    • interface Kumite {
    • static boolean hasThree(int x) {
    • return x % 10 == 3 || x > 9 && hasThree(x / 10);
    • return !(x + "").replace("3","").equals((x + "")) ;
    • }
    • }