Answer:
public static int sumStrings(String s1, String s2, String s3) {
int i1 = Integer.parseInt(s1);
int i2 = Integer.parseInt(s2);
int i3 = Integer.parseInt(s3);
int sum = i1 + i2 + i3;
return sum;
}
Explanation:
- Create a method called sumStrings that takes three strings
- Convert each string to integer using Integer.parseInt() method
- Sum the strings
- Return the result