public static boolean checkNumbers(Integer i, Integer j) {
        char[] base = i.toString().toCharArray();
        char[] comp = j.toString().toCharArray();

        for (char b : base) {
            boolean t = false;
            for (char c : comp) {
                if (b == c) t = true;
            }
            if (!t) return false;
        }

        return true;
    }