Simple Array Sum

  • + 0 comments

    this is my solution with java

    public static int simpleArraySum(List ar) { int suma = 0; for(int i = 0; i < ar.size(); i++){ suma+=ar.get(i); }

        return suma;
    }