Possible Duplicate:
Why does (360 / 24) / 60 = 0 … in Java
This line of code:
System.out.println ("array[j], "+array[j]+", divided by sum, "+sum+", equals: array[j]/sum: "+ array[j]/sum) ;
is yeilding this line of text:
array[j], 21, divided by sum, 100, equals: array[j]/sum: 0
why is it doing this? (everything is right eccept that the answer should be .21)