Java tutorial
//package com.java2s; public class Main { public static double getStrength(String[] word) { double result = 0.0; for (int i = 0; i < word.length; i++) { result = result + (Double.parseDouble(word[i])) * (Double.parseDouble(word[i])); } return Math.sqrt(result); } }