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.


How to convert Char Array to String in Java

  • 07 December 2016
  • ADM

How to convert Char Array to String in Java. Two simple examples: using String constructor or static valueOf method


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.


How to create Factory Pattern in Java

  • 03 November 2016
  • ADM

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


Get and Set Field Value using Reflection in Java

  • 31 October 2016
  • ADM

How to get and set field value using reflection in Java. The tutorial covers all situations for a field: public, private and protected.


How to execute method using reflection in Java

  • 28 October 2016
  • ADM

How to execute method using reflection in Java. Example with all cases, with/without parameters and returning/no returning a value.