Counting with a sentinel loop
To me, at first glance, the groupCount will go up until the sentinel is read in then reset for the next group of numbers. Instead, what it does is keeps counting, instead of finding that in the first group there are 4 numbers then in the second group finding that there are 6 numbers; it totals out to give me 10.
while(num > SENT)
System.out.println("This is the" + num);
groupSum = groupSum + num;
System.out.println("This is the" + groupCount+ "and the" + groupSum);
num = scan.nextDouble();
I figured it out.