Java怎么把二维数组
static String [][] strings = {
{"A","A2","A21"},
{"A","A3","A31"},
{"A","A3","A4"},
{"b","B1","B11"},
{"c","c1","c11"},
{"d","d1","d11","d111"}
};
转成父子树,子数组第一个元素是第二个元素的父节点,第2个元素是第3个元素的父节点,第3个元素是第4个元素的父节点,以此类推。想要的树结构如下: