We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb2d794 commit 19fdba8Copy full SHA for 19fdba8
factory-kit/src/main/java/com/iluwatar/factorykit/App.java
@@ -59,6 +59,6 @@ public static void main(String[] args) {
59
list.add(factory.create(WeaponType.SPEAR));
60
list.add(factory.create(WeaponType.SWORD));
61
list.add(factory.create(WeaponType.BOW));
62
- list.forEach(weapon -> LOGGER.info("{}", weapon.toString()));
+ list.parallelStream().forEach(weapon -> LOGGER.info("{}", weapon));
63
}
64
0 commit comments