الرجوع
تسجيل الدخول

What is the primary purpose of this code?

Vector<Integer> results = new Vector<>();
results.add(90);
results.add(85);
results.add(88);
int total = 0;
for (int i = 0; i < results.size(); i++) {
    total += results.get(i);
}
System.out.println("Final Score: " + (total / results.size()));