Split Array into Two Parts in Java

In this post, we will see how to split array into two parts in Java. If the array contains an odd number of items, the extra item should be part of the first array.

Merge Arrays into an Object array in Java

In this post, we will discuss how to merge arrays of same type into single a new Object array using Java 8, System.arraycopy(), Java Collections, Guava and Apache Commons Lang.

Write a C Program without using main function

Write a C or C++ program without using main function. We are allowed to change the entry point of the program from main() to any other function or remove the main() function altogether.

Reverse elements of a Parallel Stream in Java

In this post, we will see how to reverse elements of a parallel Stream in Java. In other words, we’ll create a new Stream which iterates the elements of specified stream in reverse order.