Solve: Share Digit
Imported By: Geoffrey Challen
/ Version: 2021.6.0
Given two int
s both in the range 10..99, return true if there is a digit that appears in both numbers, such as
the 2 in 12 and 23.
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.boolean shareDigit(int first, int second) {
return false;
}