@Test public void testMerge() { assertEquals(StringUtil.merge("a", "b"), "ab"); assertEquals(StringUtil.merge("a", "b", "c"), "abc"); assertEquals(StringUtil.merge("a", "b", "c", "d"), "abcd"); assertEquals(StringUtil.merge("a", "b", "c", "d", "e"), "abcde"); assertEquals(StringUtil.merge("a", "b", "c", "d", "e", "f"), "abcdef"); }
public static String merge(Object... objects) { StringBuilder sb = new StringBuilder(); for (Object object : objects) sb.append(object); return sb.toString(); }
StringUtil { public static String merge(Object... objects) { StringBuilder sb = new StringBuilder(); for (Object object : objects) sb.append(object); return sb.toString(); } }
StringUtil { public static String merge(Object... objects) { StringBuilder sb = new StringBuilder(); for (Object object : objects) sb.append(object); return sb.toString(); }  }
StringUtil { public static String merge(Object... objects) { StringBuilder sb = new StringBuilder(); for (Object object : objects) sb.append(object); return sb.toString(); }  static boolean isEmpty(String str); static boolean andIsEmpty(String... strs); static boolean orIsEmpty(String... strs); static boolean isNotEmpty(String str); static boolean isBlank(String str); static boolean andIsBlank(String... strs); static boolean orIsBlank(String... strs); static boolean isNotBlank(String str); static boolean equals(String str1, String str2); static byte[] strToBytes(String str); static String bytesToStr(byte[] bytes); static String strToHexStr(String str); static String hexStrToStr(String hexStr); static byte[] hexStrToBytes(String hexStr); static String bytesToHexStr(byte[] bytes); static String merge(Object... objects); @SneakyThrows static int toInt(String str); @SneakyThrows static long toLong(String str); @SneakyThrows static double toDouble(String str); @SneakyThrows static float toFloat(String str); @SneakyThrows static String toMD5(String str); }
StringUtil { public static String merge(Object... objects) { StringBuilder sb = new StringBuilder(); for (Object object : objects) sb.append(object); return sb.toString(); }  static boolean isEmpty(String str); static boolean andIsEmpty(String... strs); static boolean orIsEmpty(String... strs); static boolean isNotEmpty(String str); static boolean isBlank(String str); static boolean andIsBlank(String... strs); static boolean orIsBlank(String... strs); static boolean isNotBlank(String str); static boolean equals(String str1, String str2); static byte[] strToBytes(String str); static String bytesToStr(byte[] bytes); static String strToHexStr(String str); static String hexStrToStr(String hexStr); static byte[] hexStrToBytes(String hexStr); static String bytesToHexStr(byte[] bytes); static String merge(Object... objects); @SneakyThrows static int toInt(String str); @SneakyThrows static long toLong(String str); @SneakyThrows static double toDouble(String str); @SneakyThrows static float toFloat(String str); @SneakyThrows static String toMD5(String str);  }