(243 Views)

Below is the Java Code which checks whether the Mobile Number is Valid or Not. In my case Mobile Number is considered valid if it begins with 0 or 91, then contains 7 or 8 or 9, and then contains 9 digits. So, if a number contains this numbers, then it is considered as valid else not valid.

1 UpvotesUpvote |
0 DownvotesDownvote |

- Difference between StringBuilder insert and append method [233 Views]
- Difference between merge and update methods in hibernate [432 Views]
- Floyd Cycle Detection Algorithm in Java [694 Views]
- Difference between JDBC and ODBC [677 Views]
- Simple Tutorial on working with Java Spring and AngularJS together [319 Views]

- Knuth-Morris-Pratt (KMP) Substring Search Algorithm with Java Example [9283 Views]
- Pseudocode and Algorithm to find whether number is Armstrong Number or Not [7698 Views]
- How To Win Ludo King Game Every Time [7484 Views]
- error: Multiple commands produce error in Xcode 10 [5084 Views]
- FlowChart and Pseudocode to find Whether a Number is Even or Odd [4047 Views]