Log4j 1.2.x basic example
This tutorial presents log4j 1.2.x basic examples. How to log a message and an exception.
Java 8 forEach examples
Java 8 forEach examples. Map and list loop using lambda, method reference, stream and filter.
GET/POST request with Apache HttpClient
GET/POST request tutorial using Apache HttpClient. The tutorial is using httpbin.org test server.
How to create object using reflection in Java
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
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
Simple example how to convert a String object InputStream object in Java using ByteArrayInputStream class.
Search
Other Posts
Follow Us On