convert two-dimensional array to string

前端 未结 4 1540
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-09 09:38

I\'m trying to convert a String[][] to a string for display in a GUI. Here\'s my code:

String[][] tableBornes = SearchPropertiesPlugin.FillBorne         


        
4条回答
  •  不思量自难忘°
    2020-12-09 10:24

    Try Arrays.toString(Object[] a)

    for(String[] a : tableBornes) 
          System.out.println(Arrays.toString(a));
    

    The above code will print every array in two dimensional array tableBornes in newline.

提交回复
热议问题