Maven error – invalid target release: 1.11
Maven compiles and hits the following fatal error messages: Fatal error compiling: error: invalid target release: 1.11 . The article will show you how to fix this error
Favourite tutorials for developers
Maven compiles and hits the following fatal error messages: Fatal error compiling: error: invalid target release: 1.11 . The article will show you how to fix this error
This article shows how to use the following Java APIs to append text to the end of a file. (1) Files.write – Append a single line to a file, Java…
In Java, we can use Files.write to create and write to a file. The Files.write also accepts an Iterable interface; it means this API can write a List to a…
A series of Java 8 up to date tips and examples, hope you like it. Java 11 reached General Availability on 25 September 2018, this is a Long Term Support…
In Java, the InputStreamReader accepts a charset to decode the byte streams into character streams. We can pass a StandardCharsets.UTF_8 into the InputStreamReader constructor to read data from a UTF-8…
In Java, the OutputStreamWriter accepts a charset to encode the character streams into byte streams. We can pass a StandardCharsets.UTF_8 into the OutputStreamWriter constructor to write data to a UTF-8…
This Java 11 JEP 332 adds support for TLS 1.3 protocol. This article will demo for An SSLSocket client with TLS1.3 protocol and TLS_AES_128_GCM_SHA256 stream cipher, to send a request…
This article shows you how to use the new Java 11 HttpClient APIs to send HTTP GET/POST requests, and some frequent used examples.
In this article, we will show you a few examples to make HTTP GET/POST requests via the following APIs: Apache HttpClient 4.5.13, OkHttp 4.2.2, Java 11 HttpClient, Java 1.1 HttpURLConnection…
This article focus on a few of the commonly used methods to read a file in Java. 1 - Files.lines, return a Stream (Java 8), 2 - Files.readString, returns a…