Learn how to make multiple assertions using TestNG’s SoftAssert and find out why that is a valuable tool for writing clean tests with reduced debugging time.
Search Results for: var
Unit Test for hashCode() in Java
Explore the importance of unit testing for the hashCode() method in Java.
Finding the nth Last Occurrence of char in String
Explore different methods to find the nth last occurrence of a character within a string using Java.
Converting Image to BufferedImage in Java
A quick and practical guide to converting images to BufferedImage in Java.
Calculating Moving Averages in Java
Let’s explore various methods and techniques for calculating moving averages, ranging from traditional approaches to libraries and Stream API’s.
Implement the Builder Pattern in Java 8
Learn how to implement a Builder Pattern in Java 8.
Difference Between Casting to String and String.valueOf()
Discover when casting to String or using String.valueOf() is most useful.
“Not a Managed Type” Exception in Spring Data JPA
Explore the reasons behind the “Not a Managed Type” Exception in Spring Data JPA.
Introduction to Simple Java Mail
Explore the process of setting up Simple Java Mail and learn how to send emails, including attachments and HTML content, handle exceptions, and more.
Find the Date of Easter Sunday for the Given Year
Learn how to find the date of Easter Sunday for the given year using three algorithms in Java.
Find the Length of the Longest Symmetric Substring
Learn how to handle the symmetric substring expansion methods, taking into account the specific requirements such as input size and computational efficiency.
Download File from S3 Given a URL
Learn how to download a file from S3 given a URL with Java and AWS SDK.
How to Specify the logback.xml Location
A quick and practical guide to customizing the logback.xml location.
How to Intercept a Request and Add Headers in WebFlux
Explore different ways of intercepting and adding custom headers for both server web requests and web client requests in Spring WebFlux
PrintWriter write() vs print() Method in Java
Discover the differences between PrintWriter’s write() and print() methods.
Iterator vs forEach() in Java
Learn how to navigate through collections and arrays using the Iterator inteface and forEach() method.
Exploring Complex Number Arithmetic Operations in Java
Learn how to perform complex-number operations in Java.
Polymorphism with Gson
A quick and practical guide to handling polymorphic structures with Gson.
SkipList Implementation in Java
A quick and practical guide to implementing SkipList in Java.
Parallel Collection Processing with Parallel Collectors and Virtual Threads
Learn how to perform parallel processing of collections in Java with the Parallel Collectors library and Virtual Threads.