Format method for legibility (added some spaces in expressions.)

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@430167 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2006-08-09 22:18:43 +00:00
parent 06ebaca91c
commit 5d915eb6c6
1 changed files with 3 additions and 3 deletions

View File

@ -309,9 +309,9 @@ public class RandomStringUtilsTest extends junit.framework.TestCase {
private double chiSquare(int[] expected, int[] observed) {
double sumSq = 0.0d;
double dev = 0.0d;
for (int i = 0; i< observed.length; i++) {
dev = (double)(observed[i] - expected[i]);
sumSq += dev*dev/(double)expected[i];
for (int i = 0; i < observed.length; i++) {
dev = (double) (observed[i] - expected[i]);
sumSq += dev * dev / (double) expected[i];
}
return sumSq;
}