Tech

Using Builder in Java to Efficiently Create Safe Objects

IntroductionAs noted in books like Effective Java (3rd Edition), when designing a class with many parameters, it's a goo...
Tech

How to Use Java’s Validation Methods and a Comparison of Major Libraries

IntroductionProper verification of arguments and object states is essential to ensure the reliability of a program.To pr...
Tech

How to Split a String in Java and Important Considerations

Basic Usage of the split MethodIn Java, you can split a string using the split method.The following example demonstrates...
Tech

Using ArrayList Capacity to Improve Performance

IntroductionWhen creating a list in Java, you often see instances created like this: new ArrayList<>().List<String> list...
Tech

The Optimal Solution for Zero Padding and Space Padding in Java

IntroductionIn this article, I will introduce several methods for padding strings with zeros or spaces in Java, along wi...
Tech

Set Up a Java Formatter in Visual Studio Code

This article explains how to set up a Java formatter in Visual Studio Code based on Google Java Style.PrerequisitesThe e...