StreamToLoop: add finisher parentheses automatically if necessary

This commit is contained in:
Tagir Valeev
2016-12-09 11:04:29 +07:00
parent c7ccea5186
commit f99940c8e3
14 changed files with 28 additions and 25 deletions
@@ -13,7 +13,7 @@ public class Main {
count++;
}
}
return (count == 0 ? OptionalDouble.empty() : OptionalDouble.of((double) sum / count));
return count == 0 ? OptionalDouble.empty() : OptionalDouble.of((double) sum / count);
}
public static void main(String[] args) {