I have a string array as:
String[] guaranteedOutput = Arrays.copyOf(values, values.length,
String[].class);
All the String values are numbers. The data should be converted to a Double[].
Question
Is there a one line solution in Java to achieve this or we need to loop and convert each value to a Double?
double[]? It's faster.