This post demonstrates how to import Maven Remote Archetype Catalogs in IntelliJ IDEA to use archetypes that are not readily available out-of-the-box.
Proper Implementation Of Singleton Pattern in Java
This post shows the proper implementation of the Singleton Pattern in Java. Many of us would apply it in the most convenient way but not the proper one. In most cases, our codes would work. But when we deal with
Continuous Integration with GitHub and Jenkins in Red Hat, and AWS EC2
This post demonstrates how to setup a Continuous Integration environment using Jenkins to build codes checked in in GitHub.com. Our Jenkins instance runs on Red Hat Enterprise Linux in AWS EC2.
Java – Sort an Enum type by its properties
When we sort an array or collection of Enum types, the sort order is based on the natural order.
Java – Closing JDBC Database Resources with try-with-resources
This post demonstrates how to use Java JDBC API with try-with-resources database resources in the following order – ResultSet, Statement, and Connection. The try-with-resources is a new exception handling mechanism that makes it easier to correctly close resources used within
Understanding How Java Works With Files
The Java java.io.File (File class for short) connects Java and the Operating System to read from and write to files. It can represent either a file or a directory. How files and directories are organized in the file system depends
Install Git in Red Hat Enterprise Linux and AWS EC2
This post will show how to install Git in Red Hat Enterprise Linux in AWS EC2.
Reuse Unit Tests by Converting them to Parameterized Tests
This post demonstrates how to reuse our unit tests with JUnit Parameterized. Let’s say, we have a JUnit test class that tests for, for example, a single web browser’s “browse-to-URL” functionality in various scenarios and we want to reuse those tests for other browsers with the least code change.
Remove XML Element based on parameter in Java using XSLT
This post shows how to remove an XML element based on some parameters in Java using XSLT. We mean parameters for the Transformer object and let XSLT work its magic during the transformation. Therefore, three significant events will happen. First,
Install Artifactory in Red Hat Enterprise Linux and AWS EC2
This post demonstrates how to install Artifactory in Red Hat Enterprise Linux in AWS EC2.