Log4j 1.2.x basic example

  • 10 February 2017
  • ADM

This tutorial presents log4j 1.2.x basic examples. How to log a message and an exception.


Java 8 forEach examples

  • 07 February 2017
  • ADM

Java 8 forEach examples. Map and list loop using lambda, method reference, stream and filter.


GET/POST request with Apache HttpClient

  • 27 January 2017
  • ADM

GET/POST request tutorial using Apache HttpClient. The tutorial is using httpbin.org test server.


How to create object using reflection in Java

  • 27 October 2016
  • ADM

How to create an object using reflection in Java. Simple examples for both situations provided: with parameters or without parameters.


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.


How to convert String to InputStream in Java

  • 14 October 2016
  • ADM

Simple example how to convert a String object InputStream object in Java using ByteArrayInputStream class.