Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 xtend 中声明一个 int 数组?
我试过 ArrayList 但我收到错误“原始'int'不能是类型参数”。
有关详细信息,请参阅文档,但本质上是以下内容:
val int[] x = newIntArrayOfSize(5)
或者如果你想定义一个数组文字:
val int[] x = #[1, 2, 3]