Is there a way to re-fill the array with new value, without using for loop?

前端 未结 0 1808
南旧
南旧 2021-01-14 14:14

In Java, we can fill the array by simply

String[] strings = new String[10];
java.util.Arrays.fill(strings, "hello");
// Re-fill the array with "         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题