Display double in 2 decimal points in Java

  • 13 October 2016
  • ADM

This tutorial will show you how display double in 2 decimal points in Java using String format method and DecimalFormat class.


How to read XML file in Java using DOM

  • 12 July 2016
  • ADM

How to read XML file in Java using DOM. 2 methods: one reading each element by the name and second parsing the entire DOMobject.


How to create XML file in Java using DOM

  • 11 July 2016
  • ADM

How to create XML file in Java using DOM. Simple example with pretty printing to output the content to console or to a file.


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.