Problem: How to encode and decode a message in Java using Base64 encoding? Since Java 8 there is Base64 class for encoding and decoding bytes. Here we show how to use it.
Continue reading Java Base64java-util
Problem: How to print Java object using custom format? Since Java 5 there’s Formattable interface exactly for that purpose. Here’s an example of how to use it.
Continue reading Java Formattable exampleProblem: Java has great support for Zip format and writing code in Java to zip/unzip file is really simple. Java 8 makes it even simpler. The following example shows how to zip and unzip file.
Continue reading Java zip file