Finding common digit in two intergers

 import java.util.*;

public class CommonDigit {
public static boolean findDigit(int a, int b){
if(a<25 && b>75){
return false;
}
int p = a%10;
int q = b%10;
a = a/10;
b = b/10;

return(a==b || a == p || a==q || p==q ||p==b);
}
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
System.out.println("Enter the first number");
int a = sc.nextInt();
System.out.println("Enter the second number");
int b = sc.nextInt();

System.out.println(findDigit(a, b));

}
}

Google Script for Data Entry Form in Google Spreadsheet

// function to validate the entry made by user in user form function validateEntry (){ // declare a variable and referernece of active goog...