Home » Author Archives: Armando Flores

Author Archives: Armando Flores

Armando Flores
Armando graduated from from Electronics Engineer in the The Public University Of Puebla (BUAP). He also has a Masters degree in Computer Sciences from CINVESTAV. He has been using the Java language for Web Development for over a decade. He has been involved in a large number of projects focused on "ad-hoc" Web Application based on Java EE and Spring Framework.

java.util.concurrent.ForkJoinWorkerThread Example

In this post, we are going to discuss about the class java.util.concurrent.ForkJoinWorkerThread and give you and idea of how you can use it on your own code when building robust multi-threaded applications. 1. ForkJoinWorkerThread Class One of the most interesting features of Java 7 is the Fork/Join framework. It’s an implementation of the Executor and ExecutorService interfaces that allow you ...

Read More »

java.util.LinkedHashSet Example

In this post, we are going to discuss about the class java.util.LinkedHashSet and give you an idea of how you can use it on your own code when you want to manage collections of objects. Applications often must manage collections of objects. Although you can use arrays for this purpose, they are not always a good choice. For example, arrays ...

Read More »

java.util.concurrent.CopyOnWriteArraySet Example

In this post, we are going to discuss about the class java.util.concurrent.CopyOnWriteArraySet and give you and idea of how you can use it on your own code when building robust multi-threaded applications. 1. CopyOnWriteArraySet Class As the name suggests, the CopyOnWriteArraySet class is a replacement for the standard Set class. It uses an internal CopyOnWriteArrayList for all of its operations. ...

Read More »

java.util.concurrent.ConcurrentHashMap Example

In this post, we are going to discuss about the class java.util.concurrent.ConcurrentHashMap<K,V> and give you and idea of how you can use it on your own code when building robust multi-threaded applications. 1. ConcurrentHashMap Class The ConcurrentHashMap class provides a concurrent version of the standard HashMap. This is an improvement on the synchronizedMap functionality provided in the Collections class, because ...

Read More »

java.util.concurrent.CopyOnWriteArrayList Example

In this post, we are going to discuss about the class java.util.concurrent.CopyOnWriteArrayList and give you and idea of how you can use it on your own code when building robust multi-threaded applications. 1. Introduction Data structures are a basic element in programming. Almost every program uses one or more types of data structures to store and manage their data. Java ...

Read More »

Java RunnableFuture Example

In this post, we are going to discuss about the class java.util.concurrent.RunnableFuture and give you and idea of how you can use it on your own code when building robust multi-threaded applications. 1. RunnableFuture Class Usually, when you develop a simple, concurrent-programming application in Java, you create some Runnable objects and then create the corresponding Thread objects to execute them. ...

Read More »

Java MappedByteBuffer Example

In this post, we are going to discuss about the class java.nio.MappedByteBuffer 1. MappedByteBuffer Class There are two ways for reading a file, sequentially and randomly. Files that can be explored sequentially are known as sequential files. Files that permit random access to their contents are known as random access files (RAFs). Sequential files are used more often because they ...

Read More »

Java MessageDigest Example

In this post, we are going to discuss about the class java.security.MessageDigest 1. MessageDigest Class This MessageDigest class provides applications the functionality of a message digest algorithm, such as SHA-1 or SHA-256. Message digests are secure one-way hash functions that take arbitrary-sized data and output a fixed-length hash value. A message digest is a cryptographic hash function containing a string ...

Read More »

Java ResourceBundle Example

In this post, we are going to discuss about the class java.util.ResourceBundle 1. ResourceBundle Class Resource bundles contain locale-specific objects. When your program needs a locale-specific resource, a String for example, your program can load it from the resource bundle that is appropriate for the current user’s locale. In this way, you can write program code that is largely independent ...

Read More »

log4j – Additivity Property Example

In this post, we are going to discuss about log4j additivity and how you configure them using both log4j.properties and log4j.xml files. 1. What is log4j? log4j is a tool to help the programmer output log statements to a variety of output targets. In case of problems with an application, it is helpful to enable logging so that the problem ...

Read More »