is this something that would work
import java.io.*;
public class temp {
public static BufferedReader inFile;
public static PrintWriter outFile;
public static void main(String[] args) throws IOException {
inFile = new BufferedReader(new FileReader("File.txt"));
outFile = new PrintWriter(new PrintWriter("Out.txt"));
String tempString = inFile.readLine();
int intCounter = 0;
while(tempString != null) {
intCounter = Integer.parseInt(tempString);
int [] temps = new int[200];
temps[intCounter] ++;
outFile.println(temps + "degrees occurred" + temps[intCounter] + "times");
tempString = inFile.readLine();
}
inFile.close();
outFile.close();
}
}
I don't know if this is correct because my java compiler isn't working at the time, but can you guys correct this if it can be corrected?