How to check if first character of a string is a number or not in java

3

To check if first character of a string is a number or not in java we can check in multiple ways. By using Character.isDigit() method by passing character of string using for loop or substring method. Other way is to check str.substring(0, 1).matches("

Read this post on instanceofjava.com


saidesh

blogs from hyderabad