Yearly Archives: 2026
Sum of Digits of All Elements in an Array
Title: Sum of Digits of All Elements in an ArrayWorking with the individual digits of a number is a staple of beginner Java problems,...
Sum of Prime Elements in an Array
Title: Sum of Prime Elements in an ArrayPrime numbers sit at the heart of many classic Java interview questions, and summing the primes inside...
Sum of Negative Elements in an Array
Title: Sum of Negative Elements in an ArrayIn this guide, you will learn how to compute the sum of all negative elements in an...
Sum of Positive Elements in an Array
Title: Sum of Positive Elements in an ArrayIn this guide, you will learn how to compute the sum of positive elements in a Java...
Sum of Odd Elements in an Array
Title: Sum of Odd Elements in an ArrayIn this guide, you will learn how to find the sum of all odd elements in an...
Sum of Even Elements in an Array
Title: Sum of Even Elements in an ArrayAdding up the even numbers in an array is one of the first filtering problems you meet...
Sum of All Elements in an Array
Title: Sum of All Elements in an ArrayAdding up the elements of an array is one of the first exercises every Java learner meets,...
Count Fibonacci Numbers in an Array
Title: Count Fibonacci Numbers in an ArrayCounting Fibonacci numbers in an array is a classic warm-up that mixes two ideas you will reuse in...
Count Perfect Squares in an Array
Title: Count Perfect Squares in an ArrayIn this guide, you'll learn how to count the number of perfect squares inside an integer array in...
Count Composite Numbers in an Array
Title: Count Composite Numbers in an ArrayIn this guide, you will learn how to count the composite numbers in an array using Java. A...