N
N
Nikita072021-08-02 09:40:22
Java
Nikita07, 2021-08-02 09:40:22

What does this mean in JAVA?

Hello everyone, please tell me what they mean ...in JAVA
For example here

default Map<String, String> toMap(String... fieldNames) {
        return toMap(Arrays.asList(fieldNames));
    }

Why are they needed after string?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Araya, 2021-08-02
@Nikita07

VarArgs - variable length arguments. In fact, this means that you can pass stock arguments arbitrarily.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question