Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java first character string number

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: #java #character #string #number
ADD COMMENT
Topic
Name
3+9 =