Java de dígitos compartido

if( (a/10)== (b/10)|| (a/10 )==( b % 10)||  (a % 10)== (b/10) ||  (a % 10) == (b % 10)){
    answer = true;  
}
Healthy Hornet