Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static public ArrayList<Double> savedStats()
- {
- try
- {
- FileReader dataReader = new FileReader(statFile);
- BufferedReader savedFile = new BufferedReader(dataReader);
- String statsPerLine = savedFile.readLine();
- ArrayList<Double> savedStats = new ArrayList<Double>();
- while (statsPerLine != null)
- {
- savedStats.add(Double.parseDouble(statsPerLine));
- statsPerLine = savedFile.readLine();
- }
- return savedStats;
- } catch (FileNotFoundException exp)
- {
- exp.printStackTrace();
- return null;
- } catch (IOException exp)
- {
- return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement