Search
 
SCRIPT & CODE EXAMPLE
 

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

PREVIOUS NEXT
Code Example
Java :: java iterate map and remove 
Java :: convert void * to int 
Java :: download File java from website 
Java :: how to multiply bigdecimals 
Java :: how to get internet speed in android programmatically 
Java :: How to efficiently reverse a linked list, in Java? 
Java :: java time 
Java :: java random number generator in range 
Java :: what is lambda expression in java 
Java :: how to use do while loop in java 
Java :: how to call a function in java 
Java :: mac java version terminal 
Java :: java arraylist remove 
Java :: arraylist index java 
Java :: java_remove last char 
Java :: print double without decimal java 
Java :: spring boot swagger ui 401 
Java :: java char stream to string 
Java :: from file to array java 
Java :: convert calendar to date java 
Java :: if else statement 
Java :: convert class to java 
Java :: online java code fixer 
Java :: junit check class type 
Java :: java read from file word by word 
Java :: java how to know if there is something on arguments 
Java :: int x = 3 & 5 
Java :: Arraylist in java by dc 
Java :: How to merge two sorted arrays in Java? 
Java :: System.out.println("j= 6"); 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =