### Question:
VectorMath { public static double[] parseVector(String[] values) { double[] doubles = new double[values.length]; for (int i = 0; i < values.length; i++) { doubles[i] = Double.parseDouble(values[i]); } return doubles; } private  VectorMath(); static double dot(float[] x, float[] y); static double norm(float[] x); static double norm(double[] x); static double cosineSimilarity(float[] x, float[] y, double normY); static double[] transposeTimesSelf(Collection<float[]> M); static double[] parseVector(String[] values); static float[] randomVectorF(int features, RandomGenerator random);  }### Answer:
@Test public void testParseVector() { assertArrayEquals( new double[] {-1.0, 2.01, 3.5}, VectorMath.parseVector(new String[] {"-1.0", "2.01", "3.5"})); }