Skip to main content

Posts

Showing posts with the label Java String Utilities Methods

Basic object detection in python using OpenCv and Numpy - by Dustbiin

5 String utilities methods - Dustbiin

1) Check mobile number is valid or not  public boolean isValidMobile( final String inMobile )     {         Pattern pattern = Pattern.compile( "[6-9][0-9]{9}" );         Matcher matcher = pattern.matcher( inMobile );         if ( matcher.matches() )         {             return true;         }         else         {             return false;         }     } 2) Check PIN code is valid or not   public boolean isValidPinCode( final String inStr )     {         final String str = inStr.trim();...