Arrays.spliterator(double[]): This method is available in java.util.Arrays class of Java.
Syntax:
OfDouble java.util.Arrays.spliterator(double[] array)
This method takes one argument of type double array as its parameter. This method returns a Spliterator.OfDouble covering all of the specified arrays.
Parameters: One parameter is required for this method.
array: the array, assumed to be unmodified during use.
Returns: a spliterator for the array elements.
Exceptions: NA
Approach
Java
import java.util.Arrays;public class Arraysspliteratordouble {public static void main(String[] args) {double array[] = { 1, 2, 10, 5 };System.out.println(Arrays.spliterator(array));}}
Output:
java.util.Spliterators$DoubleArraySpliterator@39ed3c8d
No comments:
Post a Comment