Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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);
    }
}