Search
 
SCRIPT & CODE EXAMPLE
 

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");
}
Comment

PREVIOUS NEXT
Code Example
Java :: java remove map 
Java :: Changing background color of selected item in recyclerview 
Java :: read stream java 
Java :: how to get current time and date in android 
Java :: javafx arabic letters 
Java :: how to sum a 2d array in java 
Java :: abstraction in java 
Java :: How to use java 8 comparator 
Java :: lambda expressions in java 
Java :: java program for try catch finally 
Java :: input file in java 
Java :: Quick Sort Java Implementation 
Java :: java search arraylist 
Java :: basic java programs 
Java :: fastreader in java 
Java :: button getsource 
Java :: To enable CORS in the MVC Java config 
Java :: java check if property exists in class 
Java :: selection sort java 
Java :: java list 
Java :: linkedlist java 
Java :: declare generic set java 
Java :: can i have both java7 and java 11 in mac 
Java :: can i run script in ubuntu using java 
Java :: what is static setter and getter examples in java 
Java :: spring xml configuration 
Java :: java object into list 
Java :: android handler clear message queue 
Java :: How to merge two sorted arrays into a single sorted bigger one? 
Java :: sorting methods in java 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =