isSelfDivisor 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;
}
Also in Java:
- java read file from command line argument
- what is java
- java round double to 2 decimal places
- java hashmap syntax
- import collections in java
- Building a maven EAR project and specifying the configuration of which projects to include, what is the element in the plugin configuration that contains Enterprise Java Bean Projects:
- teimpo en segundos java
- processing sound android
- inheritance in java
- foreach in java
- determine if a given binary tree is a valid bst
- pascal's triangle java 2d array
- number to string java
- how to get a user to add to an arraylist in java
- how to open a text file in java
- how to read in a file in java
- jbutton close jframe java
- output statement java
- how to replace all of one character with nothing in java
- capitalize string java
- how to open a folder in java swing project
- java split string
- android switch on change
- how do i print text in java