shared digit java code example
Example: shared digit java
if( (a/10)== (b/10)|| (a/10 )==( b % 10)|| (a % 10)== (b/10) || (a % 10) == (b % 10)){
answer = true;
}
if( (a/10)== (b/10)|| (a/10 )==( b % 10)|| (a % 10)== (b/10) || (a % 10) == (b % 10)){
answer = true;
}