@@ -0,0 +1,1556 @@
+package ibm.smartWatch.utils;%0A%0Aimport java.io.BufferedReader;%0Aimport java.io.FileReader;%0Aimport java.text.SimpleDateFormat;%0Aimport java.util.Date;%0A%0Aimport ibm.smartWatch.heartRate.HeartRateController;%0Aimport ibm.smartWatch.heartRate.HeartRateModel;%0A%0Apublic class CSVReader %7B%0A%0A%0A%09public static void parseHeartRateCSVFile(String csvFile, HeartRateController heartController) %7B%0A%0A%09%09String line = %22%22;%0A%09%09String cvsSplitBy = %22,%22;%0A%0A%09%09try (BufferedReader br = new BufferedReader(new FileReader(csvFile))) %7B%0A%0A%09%09%09while ((line = br.readLine()) != null) %7B%0A%0A%09%09%09%09// use comma as separator%0A%09%09%09%09String%5B%5D heart = line.split(cvsSplitBy);%0A%09%09%09%09// if (heart.length != 0)%0A%09%09%09%09// System.out.println(%22 heart length %22 + heart.length);%0A%09%09%09%09if (heart.length == 3) %7B%0A%09%09%09%09%09// System.out.println(%22heart %5BstartTime= %22 + heart%5B0%5D +  %22%5D%22);%0A%09%09%09%09%09// System.out.println(%22heart %5BendTime= %22 + heart%5B1%5D + %22%5D%22);%0A%09%09%09%09%09// System.out.println(%22heart %5Brate= %22 + heart%5B2%5D + %22%5D%22);%0A%0A%09%09%09%09%09Integer rate = null;%0A%09%09%09%09%09try %7B%0A%09%09%09%09%09%09rate = new Integer(Integer.parseInt(heart%5B2%5D));%0A%09%09%09%09%09%7D catch (NumberFormatException nfe) %7B%0A%09%09%09%09%09%09continue;%0A%09%09%09%09%09%7D%0A%0A%09%09%09%09%09HeartRateModel currentHeartRate = new HeartRateModel();%0A%0A%09%09%09%09%09currentHeartRate.setHeartRate(rate);%0A%09%09%09%09%09SimpleDateFormat ft = new SimpleDateFormat(%22MM/dd/yyyy HH:mm%22);%0A%0A%09%09%09%09%09currentHeartRate.setStartTime(ft.parse(heart%5B0%5D));%0A%09%09%09%09%09currentHeartRate.setEndTime(ft.parse(heart%5B1%5D));%0A%09%09%09%09%09heartController.setCurrentHeartRateModel(currentHeartRate);%0A%09%09%09%09%09heartController.evaluateHeartRate();%0A%0A%09%09%09%09%7D%0A%0A%09%09%09%7D%0A%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%0A%09%7D%0A%7D%0A

Create CSVReader.java