Digit Java bersama

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