JAXB Hello World Marshalling / Unmarshalling Example

  • 03 August 2017
  • ADM

JAXB Hello World Marshalling/Unmarshalling example: Object to XML and XML to Object.


How to create a Java project with Maven

  • 07 August 2017
  • ADM

How to create a Java project with Maven. Simple steps to generate the project, import in Eclipse and run the application.


GET/POST request with Apache HttpClient

  • 27 January 2017
  • ADM

GET/POST request tutorial using Apache HttpClient. The tutorial is using httpbin.org test server.


GET/POST request with HttpURLConnection in Java

  • 17 October 2016
  • ADM

How to send GET and POST requests using standard HttpURLConnection class from Java. Simple examples for both methods.


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 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.