Skip to content

Tag Archives: Java-Arrays

An array is a group of like-typed variables that are referred to by a common name. An array can contain primitives data types as well… Read More
An array is a group of like-typed variables that are referred to by a common name. An array can contain primitives data types as well… Read More
Java Set is a part of java.util package and extends java.util.Collection interface. It does not allow the use of duplicate elements and at max can… Read More
A Stream is a sequence of objects that support various methods which can be pipelined to produce the desired result. An array is a group… Read More
Java 8 introduced a new method called as parallelSort() in java.util.Arrays Class. It uses Parallel Sorting of array elements Algorithm of parallelSort() 1. The array… Read More
The java.lang.reflect.Array.setFloat() is an inbuilt method in Java and is used to change a specified float value to a specified index of a given object… Read More
The java.lang.reflect.Array.setDouble() is an inbuilt method in Java and is used to set a specified double value to a specified index of a given object… Read More
The java.lang.reflect.Array.setChar() is an inbuilt method in Java and is used to change a specified char value to a specified index of a given object… Read More
The java.lang.reflect.Array.setByte() is an inbuilt method in Java and is used to set a specified byte value to a specified index of a given object… Read More
The java.lang.reflect.Array.setShort() is an inbuilt method in Java and is used to set a specified short value to a specified index of a given object… Read More
Given an array of N elements and an element K, find the index of an array element in Java. Examples:  Input: a[] = { 5, 4,… Read More
The java.lang.reflect.Array.set() is an inbuilt method in Java and is used to set a specified value to a specified index of a given object array.… Read More
The java.lang.reflect.Array.setInt() is an inbuilt method in Java and is used to set a specified int value to a specified index of a given object… Read More
The java.lang.reflect.Array.getDouble() is an inbuilt method of Array class in Java and is used to return the element present at the given index from the… Read More
The java.lang.reflect.Array.getFloat() is an inbuilt method of Array class in Java and is used to return the element present at the given index from the… Read More