How to sort objects with Comparable and Comparator in Java
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
How to convert Char to String in Java using String.valueOf
and Character.toString
method.
How to create Null Object Pattern in Java
How to create Null Object Pattern in Java. Simple example using object and null object class implementation.
GET/POST request with HttpURLConnection in Java
How to send GET and POST requests using standard HttpURLConnection class from Java. Simple examples for both methods.
Autoboxing and Unboxing in Java
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
How to generate entities from tables using EclipseLink. Simple example using one-to-one database relationship. @MappedSuperclass example included