Skip to content

Commit

Permalink
refactor: add printlns
Browse files Browse the repository at this point in the history
  • Loading branch information
lbqh committed Dec 15, 2018
1 parent 929f815 commit 240e4db
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kalang-runtime/src/main/java/kalang/helper/PrintHelper.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
package kalang.helper;

import java.util.Collection;

public class PrintHelper {

public static void println(Object msg) {
System.out.println(msg);
}

public static void printlns(Collection messages) {
for (Object o : messages) {
println(o);
}
}

public static void printlns(Object[] messages) {
for (Object o : messages) {
println(o);
Expand Down

0 comments on commit 240e4db

Please sign in to comment.