void f(String[] first, String[] second) {
String[] both = ???
}
If you look at the source, there are String parameters first and second, and I want to combine these two.
java array concatenation add
I found a good way at Apache Commons Lang library. site
String[] both = (String[])ArrayUtils.addAll(first, second);
You can use it like this.
© 2024 OneMinuteCode. All rights reserved.