Answers for "how to clear an array and make it empty java"

1

clear array java

Arrays.fill(myArray, null);
Posted by: Guest on January-21-2021
1

java empty array

String [] names = new String[0];

// or 

int [] ages = {}
Posted by: Guest on June-18-2020

Code answers related to "how to clear an array and make it empty java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language