Java Programming Tutorials

Java programming tutorials with many code examples!

Java Base64

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.

Read More

Share with the World!

Java Formattable example

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.

Read More

Share with the World!

Java zip file

Problem:

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.

Read More

Share with the World!
Pages:123456