Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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