Thank you very much for your interest in JavaHowTos. Our goal is to provide you with quality tutorials following current trends in JAVA development and topics more or less related to it. If you want to suggest a topic you would like to be covered, you can write to us at This email address is being protected from spambots. You need JavaScript enabled to view it.. We'll get back to you with answer in a day or two.

If you like JavaHowTos and would like to help us and support our work, you can find details here.

Writing data into .csv file using apache commons library

If you have a situation where you need to write data into the CSV file, one option should be using apache commons library. If you're using Maven, first you'll need to add dependency into pom.xml:

Read more ...

How to iterate over java.util.Map

If you have map defined as for example HashMap:

Map<String, String> map = new HashMap<String, String>();

You can iterate through it using for loop on following way:

Read more ...

How to create CSR (Certificate Signing Request) using keytool?

If you already have keystore, you can skip step 1.

Step 1. Create keystore with private key in it.

keytool -genkey -alias server -keyalg RSA -keysize 2048 -keystore keystore.jks -dname "CN=p1, O=o1, L=Belgrade, ST=, C=RS"

How to iterate over java.util.Map

If you have map defined as for example HashMap:

Map<String, String> map = new HashMap<String, String>();

You can iterate through it using for loop on following way:

Read more ...