How to delete directory in Java

  • 19 October 2016
  • ADM

How to delete directory in Java using File.delete() method. Recursive delete is applied if the directory is not empty.


Autoboxing and Unboxing in Java

  • 12 October 2016
  • ADM

In Java, autoboxing is the automatic conversion between the primitive types and their corresponding object wrapper classes. Unboxing is the other way around.


How to read and write files in Java

  • 17 June 2016
  • ADM

How to read and write files in Java using BufferedReader and BufferedWriter. The example highlights the classic resource release and try-with-resource approach.


How to convert object to / from JSON using Jackson

  • 17 July 2017
  • ADM

How to convert Java object to / from JSON string using Jackson library. Simple example including embedded object.


How to convert object to / from JSON using Gson

  • 15 June 2016
  • ADM

How to convert Java object to / from JSON string using Gson library. Simple example including embedded object.


How to read CSV file in Java

  • 27 May 2016
  • ADM

How to parse CSV file in Java and display all the value.The solution treats the case when a column contains the delimiter and the double quote character.