Check out example codes for "isSelfDivisor java". It will help you in understanding the concepts better.

Code Example 1

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;
  }

Learn ReactJs, React Native from akashmittal.com