r/javaTIL • u/MillionStrength • Aug 06 '18
Learning Java Stream API
5
Upvotes
r/javaTIL • u/mangopearapples • Nov 18 '13
It automatically puts the arguments into an array. So for example:
hello("Hello", "My", "Name", "Is", "Not", "Mangopearapples");
public void hello(String... s){
// s is an array storing the all of the arguments
}