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.
https://stackoverflow.com/questions/65838818/java-splice-string January 22, 2021 at 11:12AM
没有评论:
发表评论