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");
Also in Java:
- create java windows application
- how to create a java jframe
- Kotlin is like java
- how to pass parameters to xsl file
- check last character of string java
- java find biggest number in array
- count occurrences of character in string java 8
- take a value from keyboard java
- crit chance in java
- math minimum java
- java print syntax
- Error executing Maven. java.io.FileNotFoundException: The specified user settings file does not exist: /etc/java-8-openjdk
- objectoutputstream exemple
- reading string after double in java
- java int to binary
- Matlab java.lang.IllegalArgumentException: Invalid range
- java stack
- restart application programmatically android
- Linked List implementation
- classes in java
- java syntax
- How to draw Bezier Curve in Android
- how to change the color of a menubar in java
- how take inputs in java with message