<NME> PrintUtil.java
<BEF> ADDFILE
<MSG> Merge branch 'develop' into cbm_pred

<DFF> @@ -0,0 +1,38 @@
+package edu.neu.ccs.pyramid.util;
+
+import java.util.Arrays;
+import java.util.regex.Pattern;
+
+/**
+ * Created by chengli on 9/22/16.
+ */
+public class PrintUtil {
+    public static String toMutipleLines(Object[] arr){
+        StringBuilder sb = new StringBuilder();
+        for (Object obj: arr){
+            sb.append(obj).append("\n");
+        }
+        return sb.toString();
+    }
+
+    public static String toMutipleLines(double[] arr){
+        StringBuilder sb = new StringBuilder();
+        for (double obj: arr){
+            sb.append(obj).append("\n");
+        }
+        return sb.toString();
+    }
+
+    public static String toMutipleLines(int[] arr){
+        StringBuilder sb = new StringBuilder();
+        for (int obj: arr){
+            sb.append(obj).append("\n");
+        }
+        return sb.toString();
+    }
+
+    public static String toSimpleString(double[] arr){
+        return Arrays.toString(arr).replaceAll(Pattern.quote("["),"").replaceAll(Pattern.quote("]"),"");
+    }
+
+}

Merge branch 'develop' into cbm_pred