Search Results for: java 8
-
cajo
client server communication example
The Server.java import gnu.cajo.Cajo; // The cajo implementation of the Grail public class Server { public static class Test {…
Read More » -
aspectj
Logging aspect example
Once upon time I was writing a plugin for a closed-source LMS J2EE application having such dependencies that it wasn’t…
Read More » -
lang3
Generate random alphanumeric string
In this example we shall show you how to generate random alphanumeric String objects. We are using the org.apache.commons.lang3.RandomStringUtils class, that…
Read More » -
lang3
Date and Time format
With this example we are going to demonstrate how to make Date and Time formatting. We are using the org.apache.commons.lang3.time.DateFormatUtils…
Read More » -
lang3
Array of Objects to Array of primitives
This is an example of how to convert an array of Objects to an array of primitives. We are using the…
Read More » -
codec
Decode Base64
This is an example of how to decode Strings with the Base64 algorithm. We are using the org.apache.commons.codec.binary.Base64 class that provides…
Read More » -
codec
Encode Base64
In this example we shall show you how to encode Strings with the Base64 algorithm. We are using the org.apache.commons.codec.binary.Base64 class…
Read More » -
io
Get directory size
In this example we shall show you how to get the size of a directory. We are using the org.apache.commons.io.FileUtils class…
Read More » -
io
Get content of a file line by line
This is an example of how to get the content of a file, line by line. We will make use…
Read More » -
applet
Play audio in Applet
In this example we shall show you how to play audio in an Applet. A Java applet is a special…
Read More »