How to retrieve data from ArrayList consists of array objects

前端 未结 6 1450
清歌不尽
清歌不尽 2021-01-23 23:23

My arraylist contains String array objects. How Can I get all values? My code is below,

String cordinates1c,cordinates2l,cordinates2m;                   
String[         


        
6条回答
  •  再見小時候
    2021-01-24 00:09

    Arrays should be printed with the help of Arrays.toString() or Arrays.deepToString().

    import java.util.Arrays;
    public class Test {
        public static void main(String[] args) throws Exception {
            String[][] a = {{"a", "b", "c"}, {"d", "e"}};
            System.out.println(Arrays.deepToString(a));
        }
    }
    

提交回复
热议问题