This post demonstrates how to avoid NullPointerException in Java 9 when working with Stream and using the overloaded of metho
Java – Create class constructor with fields faster in Eclipse
This post shows how to create a Java class constructor with fields faster in Eclipse. Before the advent of smart IDEs, Java developers write out almost all codes as it was the only way to do and IDEs were in
C# – Check if key exists using these Dictionary Methods
A well-rounded software developer could easily switch between programming languages. Besides, full-stack developers do this already. They have skills for both backend and frontend. Therefore, we should learn another language like C# no matter what programming language forte we come
Ruby – How to create a Class and its Object
This post shows Ruby codes that create a simple class and objects from that class. Yes, Ruby is an old and weird programming language, but people and companies are still using it. Therefore, no one programming language has a monopoly
Java – Where can we place the public static void main method?
Many Java programmers are only familiar with having the public static void main in a class to start the application. However, there are other places where we can define this static method and still start up a Java application. This
Java – How to skip and not execute the finally clause
They say that when an Exception occurs, the finally clause, if available, will always execute no matter except for one thing.
How to block port using Ruby for testing purposes
This post is about using a port so that other applications will not use it in test scenarios. For instance, you have some tests that use a mock web service, and you require ranges of port numbers. So, the idea
Three Ways To Check if key exists in Map in Kotlin
This post shows how to check if a key exists in a Map in Kotlin. There are three ways to do this in Kotlin. Note that we are using Kotlin 1.3. Check Key Exists Using Map containsKey Method This method
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,
Retry Operation at specific Exception using Spring Retry
Spring-Retry allows us to retry operations when the codes encounter exceptions. How do we limit the retries to specific exceptions only? For instance, we wouldn’t want to retry SOAP Web Service operations. The operations may throw exceptions due to invalid