convert the number to string and find if it contains 1 , 2 & 3.
private static boolean findContainsOneTwoThree ( int number ) { String str = Integer . toString ( number ) ; return ( str . contains ( "1" ) && str . contains ( "2" ) && str . contains ( "3" ) ) ; }