YOU SAID:
public boolean shareDigit(int a, int b) { if(a%10==b%10||a%10==b/10||a/10==b%10||a/10==b/10){ return true; }else{ return false; } }
INTO JAPANESE
public boolean shareDigit(int a、int b){if(a%10 == b%10 || a%10 == b / 10 || a / 10 == b%10 || a / 10 == b / 10){trueを返す; } else {return false; }}
BACK INTO ENGLISH
public boolean shareDigit (int a, int b) {if (a% 10 == b% 10 || a% 10 == b / 10 || a / 10 == b% 10 || a / 10 == b / 10) {return true;} else {return false;}}
INTO JAPANESE
public boolean shareDigit(int a、int b){if(a%10 == b%10 || a%10 == b / 10 || a / 10 == b%10 || a / 10 == b / 10){trueを返す;} else {falseを返す;}}
BACK INTO ENGLISH
public boolean shareDigit (int a, int b) {if (a% 10 == b% 10 || a% 10 == b / 10 || a / 10 == b% 10 || a / 10 == b / 10) {return true;} else {return false;}}
Okay, I get it, you like Translation Party.