Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

check first character of string is number java

String myString = "1253";
if(Character.isDigit(myString.charAt(0))){
 	System.out.println("First character of string is a number");
}
else{
	System.out.println("First character of string is not a number");
}
Source by howtodoinjava.com #
 
PREVIOUS NEXT
Tagged: #check #character #string #number #java
ADD COMMENT
Topic
Name
9+5 =