division problems
- by David
This line of code:
System.out.println ("aray[j], "+aray[j]+", divided by sum, "+sum+", equals: aray[j]/sum: "+ aray[j]/sum) ;
is yeilding this line of text:
aray[j], 21, divided by sum, 100, equals: aray[j]/sum: 0
why is it doing this? (everything is right eccept that the answer should be .21)