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.
我有一个SelectItem设置为多个作为列的编辑器。这些值保存在一个String[]对象中。
SelectItem
String[]
由于编辑器处于非编辑模式,它会显示该对象的内存地址。我该如何处理它以显示数组中的值,或者我可以在任何地方设置此列以始终显示其编辑器?
使用 java 类Arrays,为您提供了一个静态toString方法来打印数组的内容。
toString
String arrayAsString = Arrays.toString(inputArray);