varargs tag

3 questions


1 answers
132 views
0
When do we use the variable argument in Java?

I learned about the variable factor, but I don't know what it's for. I don't know if you need this.I'm a little worried that people might pass as many parameters as they want by using variable argumen...

2 years ago

1 answers
103 views
0
In Java, parameters... "There are three dots. What is this?"

While looking at the source, there are three dots on the parameter as shown below, what does this mean? public void myMethod(String... strings){ // // method body}

2 years ago

1 answers
97 views
0
How do I deliver all the factors I received for

If you have any idea what to do to hand over the factors you received to other functions in a function that receives multiple factors using...void format_string(char *msg, ...);void debug_print(int db...

2 years ago

© 2024 OneMinuteCode. All rights reserved.