I'm pretty new to Java, and I'm wondering if there is an easy way to splice a String[]
. I'm using Java 11. As an example, I'm wanting to splice the args in main:
public static void main(String[] args) {
// splice args
}
I know in Python this would just be args[2:]
, but I'm not sure about the equivalent here. I saw for other types you can do use the .copyOf()
, but I saw in the Oracle docs there isn't a method for Strings.