Question 1 of 5
Fogbank Observatory stores one integer per token in mist.txt. Write sumMist so it compiles, reads every int with a hasNext loop, and returns the total. The file name is the parameter path.
import java.io.File;
import java.io.IOException;
import java.util.Scanner;
public class Fogbank {
public static int sumMist(String path) /* header continues */ {
/* write the method */
}
}