Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

check if first character of a string is a 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");
}
 
PREVIOUS NEXT
Tagged: #check #character #string #number #java
ADD COMMENT
Topic
Name
6+2 =