This example show you how to check if a string content is numeric or not. It provide totally six methods to use. package com.dev2qa.calculatorexample; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * […]
In android development, you can store string values in app / res / values / strings.xml file. Then refer it in your java code. This can avoid hardcode string values […]
This example include java code that can be used to check whether a given ip string is valid, inner or public ip or not. Please see code comments for detail […]
This example include java code to check whether a given www domain or a host name string is a valid domain or not. You can see code comments for detail […]
This example will show you how to use SimpleDateFormat to convert a Java.util.Date object to formated String and how to convert a Java date format String back to Java.util.Date object.
This article will show you two method that can convert a Java String List to String Array. Below is the Java example code. Please see the comments for detail explanation.
Some times we need to check whether user input a valid number or not. If not, we need to tell user to input a valid number again. In this example, […]
This example will show you three methods that can convert a Java char array to a Java String object. Each method has it’s unique advantage and disadvantages. Please see the […]
This article will show you how to convert Java Array to List. There are two method in below java code. One method convert a Java String Array to String List, the […]
This example will show you how to use java String class toCharArray() method to convert a java String object to a character array.