Java read file and store text in an array

Stored as strings: public class ReadTemps { public static void main(String[] args) throws IOException { // TODO code application logic here // // read KeyWestTemp.txt // create token1 String token1 = “”; // for-each loop for calculating heat index of May – October // create Scanner inFile1 Scanner inFile1 = new Scanner(new File(“KeyWestTemp.txt”)).useDelimiter(“,\\s*”); // Original … Read more