We often need to format numbers, such as taking two decimal places for a number, show only integer part of a number etc. Java provide java.text.DecimalFormat class, which can helps […]
When you set a date time value in java, you may encounter time zone issue. You will find the date time you get use java.util.Calendar class will always use the […]
When you need to invoke java command after install JDK successfully, it is better to setup below Java related system environment variable, they are JAVA_HOME, CLASSPATH, PATH. This article will […]
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, […]
Java has three character sequence manipulation class. They are java.lang.String, java.lang.StringBuffer and java.lang.StringBuilder. The most popular used class maybe java.lang.String, but there are a lot of difference between them.
Sometimes we need an 2D Array in java. But we do not know the size. So we can not create it at declaration time. An flexible way to do this […]
JUnit is a unit test tool which is open source also. You can use it to test from small units of code to large java functions. JUnit provide assertion library used […]
Java I/O(Input/Output) handles the task for getting data from a source or saving data to a target. Packages java.io and java.nio is used to handle I/O issues. In this topic we […]
If you have a good and effective understanding of Java variables and data types then you can make your programming skills excellent. In this chapter we will introduce basic java […]
Hello, today i will show you how to add selenium server standalone java library into your project. First we should download the standalone jar file which include webdriver api.