Write a java program check Number Validation.
Write a program to read a string of 10-digit numbers, and check whether the string contains a 10-digit number in the format XXX-XXX-XXXX where ‘X’
Write a program to read a string of 10-digit numbers, and check whether the string contains a 10-digit number in the format XXX-XXX-XXXX where ‘X’
Write a program to read a number, calculate the sum of odd digits (values) present in the given number. Here, we will use some approaches