Commit c9aadac0 authored by Karsten Loesing's avatar Karsten Loesing
Browse files

Use Java 5 foreach loop.

parent 54dfc898
......@@ -17,8 +17,8 @@ class IntegerDistribution {
public String toString() {
StringBuilder sb = new StringBuilder();
int totalValues = 0;
for (int i = 0; i < logValues.length; i++) {
totalValues += logValues[i];
for (int logValue : logValues) {
totalValues += logValue;
}
int[] permilles = new int[] { 500, 900, 990, 999 };
if (totalValues > 0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment