CS202 Java-137
// Sentinel is negative blood pressure.
int thisBP; int total; int count;
count = 1; // Initialize
total = 0;
// Priming read
thisBP = Integer.parseInt(dataFile.readLine());
while (thisBP > 0) // Test expression
{
  total = total + thisBP;
  count++;            // Update
  thisBP = Integer.parseInt(dataFile.readLine());
}
System.out.println(“The total = “  +  total);