diff --git a/mihxil-math/src/main/java/org/meeuw/math/abstractalgebra/AlgebraicStructure.java b/mihxil-math/src/main/java/org/meeuw/math/abstractalgebra/AlgebraicStructure.java index b3927f77..28b2c6c2 100644 --- a/mihxil-math/src/main/java/org/meeuw/math/abstractalgebra/AlgebraicStructure.java +++ b/mihxil-math/src/main/java/org/meeuw/math/abstractalgebra/AlgebraicStructure.java @@ -152,7 +152,7 @@ default void cayleyTable(AlgebraicBinaryOperator op, Consumer lineCons streamable.stream().forEach(e2 -> { line.add(op.apply(e1, e2).toString()); }); - lineConsumer.accept(line.toArray(String[]::new)); + lineConsumer.accept(line.toArray(new String[line.size()])); line.clear(); } );