Write a static method named addLengthsExceptS that accepts an ArrayList of Strings named list. The method must compute the sum of the length's of all the strings except ones that begin with the lowercase letter "s" or that contain the lowercase letter "n". Note: I just need a static method, I don't need a whole program. This was in java language.

Example #1: list = {"bill", "sam", "arthur", "jane" , "s"} returns 10

Example #2: list = {"John"} returns 0

public static int addLengthsExceptS(ArrayList<String> list)


Public Answer

VSO3XG The First Answerer