gemeinsame Ziffer Java

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