小编Der*_*mer的帖子

Is it possible to have a string in groovy by empty and not null?

我知道这对我来说可能非常不合时宜,但我需要能够在数组中存储空字符串。根据我的发现,它看起来像这样:string = ''最终与 this 相同string = null

这是真的还是我错过了什么?

如果这是真的,我怎样才能初始化一个字符串并使其在groovy中为空?

groovy

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

groovy ×1