Answers for "how to fill a list with a single value java"

1

how to fill a list with a single value java

//x is the list and value is what it is to be set to
for (int i = 0; i < x.length; i++) {
  x[i] = value;
}
Posted by: Guest on April-24-2020

Code answers related to "how to fill a list with a single value java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language