ac5b74301e
Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
16 lines
401 B
Java
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) };
|
|
}
|
|
}
|