(896 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 |

- Java Program to Swap two Numbers without using third variable [1822 Views]
- Round Robin Algorithm with implementation in Java [5388 Views]
- Why Object is the Super Class of All Classes in Java ? [2720 Views]
- Java Program to Calculate Area Of Triangle with 3 Sides Given [966 Views]
- Java program to print the initial letters of the words present in the String [782 Views]

- How To Win Ludo King Game Every Time [25314 Views]
- Knuth-Morris-Pratt (KMP) Substring Search Algorithm with Java Example [23802 Views]
- Algorithm to find whether number is Armstrong Number or Not [23348 Views]
- Jio Phone hang on LOGO problem Solution - Hard Reset Jio Phone [16522 Views]
- FlowChart and Algorithm to find Whether a Number is Even or Odd [12702 Views]