Read a CSV file in Java

In this post we will provide an example of how to read a CSV file in Java. This example is using the standard Java libraries, so you will not need to add any external dependencies. Read a CSV file in Java We have the following CSV file, it is a list of employee information

Continue reading Read a CSV file in Java

Convert String to InputStream in Java

In this post we will provide an example of how to convert a String to InputStream in Java. Convert String to InputStream in Java The following example uses the standard JDK libraries.

The example above convert the String to an InputStream. This is done using the ByteArrayInputStream which is a subclass of InputStream. The … Continue reading Convert String to InputStream in Java