Create T2CdevelopmentTool.java

This commit is contained in:
JaTiTV 2023-06-30 17:58:14 +02:00
parent a7c7877ac6
commit 2e1ef9c46d
1 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,9 @@
package net.t2code.t2codelib.SPIGOT.api.dev;
public class T2CdevelopmentTool {
public static String removeLastChar(String s, int amount) {
return (s == null || s.length() == 0)
? null
: (s.substring(0, s.length() - amount));
}
}