This is my simple solution :
public class Tester {
public static void main(String[] args) {
// TODO Auto-generated method stub
String results[]={"2","1","5","1"};
//Creating a new array of Type Int
int result [] = new int[4];
int sum = 0;
//Going trough every element in results And Converting it to Int By using : Integer.valueOf(String str)
for (int i = 0; i < results.length; i++) {
result[i] = Integer.valueOf(results[i]);
}
//Displaying the result
for (int i = 0; i < result.length; i++) {
System.out.println(result[i]);
sum += result[i];
}
System.out.println("The sum of all elements is : " + sum);
}
}