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 get input from Java Console
How to get input from Java Console. Examples using System.console
, Scanner
and BufferedReader
+ InputStreamReader
.
Client Server Socket example in Java
Client Server Socket example in Java. Client example reading the input from the console. Simple echo server example.
Java Properties file example
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
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
How to create a abstract factory design pattern in Java using the example of creating a database table/stored procedure for multiple database engines.