How to sort objects with Comparable and Comparator in Java

  • 04 February 2017
  • ADM

How to sort objects with Comparable and Comparator in Java. Primitive array and list sorting. Java Object sorting with Comparable and Comparator.


How to convert Char to String in Java

  • 23 November 2020
  • ADM

How to convert Char to String in Java using String.valueOf and Character.toString method.


How to create Null Object Pattern in Java

  • 07 December 2016
  • ADM

How to create Null Object Pattern in Java. Simple example using object and null object class implementation.


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.


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 generate tables from entities using EclipseLink

  • 15 July 2016
  • ADM

How to generate entities from tables using EclipseLink. Simple example using one-to-one database relationship. @MappedSuperclass example included