# Programming Question - Adding Strings

Name _______________________________

Write a method, `sumPositiveStrings`, that adds the positive values (after converting them from String to int) all values that are passed in the array parameter. This int sum is returned. The method should look like this.

    public static int sumPositiveStrings(String[] numStrs) {
        . . .
    }

### Error handling

There are several possible error conditions. For each condition, you should return a negative number.

1. Null. If the parameter is null, return -1.
2. No elements. If there are no elements in the array, return -2.
3. Conversion error. If any of the strings fails to convert correctly to int, return -3. Note: this requires the use of try-catch.
4. Negative values. If any element has a negative value, return -4.