Here you can find the source of squareSum(double... doubles)
public static double squareSum(double... doubles)
//package com.java2s; //License from project: Apache License public class Main { public static double squareSum(double... doubles) { double sum = 0; for (double d : doubles) { sum += d * d;/*from ww w .j av a2 s . c om*/ } return sum; } public static int squareSum(int... ints) { int sum = 0; for (int i : ints) { sum += i * i; } return sum; } }