Java, Software Development

Java Primitives in The Object-Oriented Programing World

Java primitives are predefined basic data types that exist in the Java programming language. We do not need to create them as we would with our custom Java classes. What

Read More...

Java, Software Development, Spring

Spring Dependency Injection Examples Without Spring Boot

The Spring Framework has come a long way. Nowadays, it is way easier to start a Java project with the Spring Framework using Spring Boot. In the past, we used

Read More...

Apache Maven, Java, Software Development

Create Java Project Using Maven in Command Line

This post shows how to create a Java project with Apache Maven in the command line. The content may be old, and a myriad of people may already know how

Read More...

Java, Software Development

Java Null Pointer Exception Processing With Try-Catch

In Java, we can handle exceptional events using the try-catch. But not all exceptions are the same. Java Null Pointer Exception processing requires using try-catch in a way that is

Read More...

Java, Software Development

Java, XSLT, and XML with Namespaces

When a XML uses namespaces, they need to be declared and used in the .xsl file so that the javax.xml.transform.Transformer knows how to deal with various elements in the XML. This post demonstrates how to deal with namespaces when performing transformation from or on XMLs.

Read More...

Java, Software Development, Spring

Trim String Values From Properties Files in Spring Boot

This post demonstrates how to trim string values from .properties files using SpringApplicationBuilder and a subclass of or anonymous class of StandardEnvironment supplied to the builder with overridden getProperty(String) and getProperty(String, String) methods.

Read More...

Java, Software Development, Spring

Validate Properties Files At Startup in Spring Boot

A .properties file contains lines of string pair. Each string pair consists of a parameter name (called the key), and parameter value. This post is about how to validate the parameter value at the application startup.

Read More...

Java, Software Development

Java 9 Stream filter, takeWhile, dropWhile methods

This post demonstrates how to use the new methods – takeWhile and dropWhile – of the Stream interface in Java 9 Jigsaw. We’ll touch briefly on Stream.filter(Predicate p) just to get comfortable before trying out the new methods.

Read More...

Java, Software Development

Avoid NullPointerException with Stream.ofNullable in Java 9

This post demonstrates how to avoid NullPointerException in Java 9 when working with Stream and using the overloaded of metho

Read More...

Java, Software Development

Java – 3 ways to implement a Generic Interface

A Generic Interface is an interface that makes use of formal type parameters. It uses Generics. There are 3 ways to implement a Generic Interface.

Read More...