Learn how to add text to images in Java >>>
Yearly Archives: 2020
Run mvn Command From Another Directory
Learn how to run mvn commands from another directory. >>>
Why Are Local Variables Thread-Safe in Java
Learn why local variables are thread-safe in Java. >>>
Converting a Java String Into a Boolean
Learn how to convert a string into a boolean using Java. >>>
How to Resolve a Version Collision of Artifacts in Maven
Multi module maven projects can experience difficulties at compile time and runtime with multiple library versions. We learn how to control the versions used. >>>
Measuring Object Sizes in the JVM
Learn how to measure Java object sizes with various tools such as JOL, Java Agents, and the jcmd command-line utility >>>
Refer to Environment Variables in pom.xml
Learn how to reference environment variables in a pom.xml file >>>
Differences Between YAML and JSON
Learn about the differences between YAML and JSON through quick and practical examples >>>
How Can I Resize an Image Using Java?
Learn how to resize (scale) an image using Java. >>>
Configuring Stack Sizes in the JVM
Learn how to configure the thread stack sizes in the HotSpot JVM >>>
Division by Zero in Java: Exception, Infinity, or Not a Number
When dividing by zero, integer division always throws an Exception. This is not the case with floating-point numbers, however. Let’s see why. >>>
Taking Screenshots With Selenium WebDriver
Explore two approaches to capturing screenshots using Selenium WebDriver. >>>
Java Weekly, Issue 341
Lots of interesting writeups on a wide variety of topics: From new Spring improvement and Oracle Coherence to SOLID principles and freelancing. >>>
When Does Java Throw the ExceptionInInitializerError?
Learn what causes Java to throw an ExceptionInInitializerError using a few practical examples >>>
How to Count the Number of Matches for a Regex?
Regular expressions can help us with text processing. Here we explore how to count the number of matches of a regular expression in some text. >>>
Print an Integer in Binary Format in Java
Explore different ways of printing an integer in binary format in Java. >>>
Mapping Collections with MapStruct
Explore how to map collections using MapStruct. >>>
When Does Java Throw UndeclaredThrowableException?
Learn what causes Java to throw an UndeclaredThrowableException >>>
Java Weekly, Issue 340
The Spring ecosystem is moving forward, with several major milestones. The Java language itself is also revisiting some core concepts as well. An interesting week. >>>
Simple Single Sign-On with Spring Security OAuth2 (legacy stack)
A simple SSO implementation using Spring Security OAuth2 and Boot. >>>