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 other convert Java Object Array to Object List.
This example will show you how to use java String class toCharArray() method to convert a java String object to a character array.
Java String class is used to implement an immutable character sequence object. That means a String object can not be changed or modified after it’s creation and initialization. It is read only. In this article we will show you how to create a Java String object, and the usage of it’s methods.
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.
Apache POI is a popular and easy to use java library to manage excel files. This apache POI example will tell you how to install apache POI library in your java project, how to use apache POI provided java classes to create, load an excel file data.
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 is first save the data in a java List, then translate the List data to it. In this article we will show you how to …
In this article, we will show you how to read / write CSV files using apache commons csv which is an open source free java library. This library make the process simple and clear. You can focus on your business logic without care about the detail file operation.
One of the most useful skill you should take is deploy and debug Tomcat within your Java EE Integrated Development Environment. This skill can make it easy for you to find out the reason why your Java EE web application go wrong as well as debug and fix the problem quickly. In this article we will …
The exception mechanism is how the program is handled when the program meet an error. It provides a safe exit method for java program. When an error occurs, the program executing process changes, and the control of the program is transferred to the exception handler.
There are lots of JUnit annotations. In this article, we will describe several JUnit annotations that frequently used in the java project. If you do not know how to add the JUnit framework libraries into your java project, please read How To Add JUnit 5 Dependency In Pom.xml first.