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 get input from Java Console

  • 04 February 2020
  • ADM

How to get input from Java Console. Examples using System.console, Scanner and BufferedReader + InputStreamReader.


Client Server Socket example in Java

  • 13 January 2017
  • ADM

Client Server Socket example in Java. Client example reading the input from the console. Simple echo server example.


Java Properties file example

  • 07 December 2016
  • ADM

How to work with java Properties files. Properties files are key values file. The tutorial contains both read and write examples.


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.


How to create Abstract Factory Pattern in Java

  • 03 November 2016
  • ADM

How to create a abstract factory design pattern in Java using the example of creating a database table/stored procedure for multiple database engines.