Menu
Question Index
...


Write a program to validate the given mobile number.

Input String(Mobile Number) Output
9912011220 true
8801123480 true
7123456094 true
0128932655 true
99480152463 false
884579652314 false
45210sd233*V7 false
"" (EMPTY STRING) false
null false

class ValidateMobileNUmber

{    public static void main(String s[])
    {
        String mobileNumber = "9912834567";
        boolean result = isValidMobileNumber(mobileNumber);
        System.out.println("The given mobile number 9912834567 is valid : "+result);

    }


public static boolean isValidMobileNumber(String mobileNumber)
{
boolean result = false;
//Write a code here to validate the mobile number and assign to result.
return result;
}
}

Doubts

Problems

Topic: Conclusion Of Strings In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App