^(?=\d{10})[1]\d{1,9}|^\d{1,9}
^ = startting string
(?=\d{10}) = check the string size is 10 or not
Ref :
- https://www.regextester.com/96826
- https://www.rexegg.com/regex-quickstart.html
Autoboxing is the automatic conversion that the Java compiler makes between the primitive types and their corresponding object wrapper cl...