Iselfdivisor Java

 a.
public static boolean isSelfDivisor(int number)
  {
    String s = String.valueOf(number);
    for (int i = 0; i < s.length(); i++)
    {
      int d = Integer.parseInt(s.substring(i, i+1));
      if (d == 0 || number % d != 0)
        return false;
    }
    return true;
  }
Smiling Squirrel