Can an array be created with a variable in Java?

前端 未结 0 1612
南笙
南笙 2020-12-15 03:12

In my computer science course I was told that only literals and named constants can be used to create an array, like

int[] myarray = new int[10];
相关标签:
回答
  • 消灭零回复
提交回复
热议问题