Kotlinlearncs.online LogoJava
Return to List

Solve: Share Digit

Imported By: Geoffrey Challen
/ Version: 2021.6.0

Given two ints 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.

boolean shareDigit(int first, int second) {
return false; // You may need to remove this starter code

Related Lessons

Stuck? You may find these lessons helpful: