Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

check if string is decimal java

Scanner in = new Scanner(System.in);
		
		String ip1 = in.nextLine();
		
		if( ip1.matches("^d+.d+") ) 
			System.out.println(ip1+"----is a decimal number");
		else
			System.out.println(ip1+"----is a not decimal number");
		
Comment

PREVIOUS NEXT
Code Example
Java :: call activity method from adapter 
Java :: multiple string java 
Java :: adding an element to the end of a linked list java 
Java :: how to check if array is full java 
Java :: constructeur java 
Java :: Java getClass() method 
Java :: Java if (if-then) Statement 
Java :: java string start with substring 
Java :: calling a method in java 
Java :: java, how to find the most repeated character 
Java :: android studio random number between 1 and 10 
Java :: java transaction example 
Java :: get sum of int array and return string 
Java :: client missing intents 
Java :: grepper mcm java 
Java :: how to create simple java bean class for login page in eclipse 
Sql :: mysql create user with mysql_native_password 
Sql :: postgres get columns names 
Sql :: sql finding longest and shortest names in a fleld 
Sql :: SQL order random 
Sql :: SELECT list is not in GROUP BY clause 
Sql :: mysql workbench download for iinux mint 19.3 
Sql :: sql add year to date 
Sql :: reset mysql root password mac 
Sql :: mysql add column if not exists 
Sql :: how to remove characters from string in mysql 
Sql :: oracle modify column type 
Sql :: oracle turn off constraint 
Sql :: mariadb alter user host 
Sql :: sql select table header 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =