Java Validation: Validating a Mobile Phone Number
Max O'Didily
Java Validation: Validating a Mobile Phone Number
Greetings, today I will be teaching you how to validate a UK Mobile Phone number(similar methods can be applied for different countries but since I live in the UK I will be doing UK mobile numbers). We will check if the length is 11 digits, that all characters are digits, the first number is 0 and the second number is 7. If all are true tell the user it is valid and if at least one condition isn't true then tell the user it is invalid.
I will be uploading 1 video a day during the easter holidays so subscribe to be notified when I upload! https://tinyurl.com/SubMaxODidily
Social media: Instagram: https://www.instagram.com/mcod1999/ Twitter: https://twitter.com/mcod1999 ... https://www.youtube.com/watch?v=gcm9HaqGcug
21001592 Bytes