pollymc/libraries/launcher/org/prismlauncher/utils/StringUtils.java
solonovamax ac5b74301e Cleanup splitting string into a pair
Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
2022-11-08 16:25:09 +00:00

16 lines
401 B
Java

package org.prismlauncher.utils;
public final class StringUtils {
private StringUtils() {
}
public static String[] splitStringPair(char splitChar, String input) {
int splitPoint = input.indexOf(splitChar);
if (splitPoint == -1)
return null;
return new String[]{ input.substring(0, splitPoint), input.substring(splitPoint + 1) };
}
}