aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/util/StringUtils.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/api/util/StringUtils.java')
-rw-r--r--src/main/java/gregtech/api/util/StringUtils.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/util/StringUtils.java b/src/main/java/gregtech/api/util/StringUtils.java
new file mode 100644
index 0000000000..74c11f9ae4
--- /dev/null
+++ b/src/main/java/gregtech/api/util/StringUtils.java
@@ -0,0 +1,13 @@
+package gregtech.api.util;
+
+import java.util.Arrays;
+
+public class StringUtils {
+
+ public static String getRepetitionOf(char c, int length) {
+ final char[] chars = new char[length];
+ Arrays.fill(chars, c);
+ return new String(chars);
+ }
+
+}