Question: in JAVA I would like to check if a string has digits in the middle of the name or after the name. If the digits
in JAVA
I would like to check if a string has digits in the middle of the name or after the name. If the digits are after the name, it is true, but if the digits are in between the name, then it is false.
Example:
Input: johnson410 -> true
Input john410son -> false
please use only simple terms, such as .substring or .split(), or something that doesn't have .contain in it or .matches, basically no shortcuts.
If you answer, please be able to respond if I have a comment.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
