I'm looking to calculate grades that allows me to enter a numberof grades and allows me to also calculate the average using javascript collections/array list. If possible, can someone lead me inthe direction on how to go about doing this with some explanation.Thank you !!!
My code so far;
package com.company;import java.util.*;import java.util.ArrayList;class Main { public static void main(String args[]) { Set names = new HashSet(); names.add(\"Christopher\"); names.add(\"Pedro\"); names.add(\"James\"); names.add(\"Jess\"); }}