Good day!
I have a class Student with attribute String studentNo
Using OO, how can I validate if the input is an 11-digit no.
I can do this:
If(studentNo.length()<11){
}
to validate.. but how can I determine if it is a number or not.
And what are the other methods on how can I do this validation.
Any help would be highly appreciated. Thank you.