Learn to to calculate the sum of the first N even numbers divisible by 3 by using a brute-force approach and an optimized mathematical solution with a better performance.
Also find me here:
Baeldung Author
Yadier Betancourt
Yadier is a Java Backend Developer with 2 years of experience. He is passionate about learning new technologies and improving his skills, with a particular interest in artificial intelligence. Yadier enjoys contributing to the developer community, demonstrating a proactive approach to professional growth and a dedication to the evolving field of technology.
Here's what I've written (so far):
Baeldung on Java
- All
- Java Array (4)
- Java String (3)
- Java Numbers (3)
- Algorithms (2)
- Java Streams (1)
- Java Map (1)
- Java List (1)
- Java Dates (1)
- Core Java (1)
- Artificial Intelligence (1)
Understanding findAny() and anyMatch() in Streams
Filed under Java Streams
Learn about the findAny() and anyMatch() methods and how to use them in Java Streams.
How to Generate a Random Byte Array of N Bytes
Filed under Java Array, Java Numbers
Tutorial on different methods of generating random byte arrays of any size in Java.
How to Remove Digits From a String
Filed under Java String
Learn how to remove digits from a String in Java.
Finding Minimum and Maximum in a 2D Array
Filed under Java Array
A quick tutorial on finding the minimum and maximum values in a multi-dimensional array in Java.
Casting Maps to Complex Objects
Filed under Java Map
Learn how to convert a Map to an Object or POJO in Java.