嗨伙计们,我有这样的事情:
String keyBase = "keyA";
String[] valueBase = {"a1","a2","a3"};
String keyLevel1 = "keyB";
String[] valueLevel1 = {"b1","b2","b3"};
String keyLevel2 = "keyC";
String[] valueLevel2 = {"c1","c2","c3"};
并且需要这样的东西:
String[][] f1 = {{"keyA","a1"},{"keyB","b1"}{"keyC","c1"}}
String[][] f2 = {{"keyA","a1"},{"keyB","b1"}{"keyC","c2"}}
String[][] f2 = {{"keyA","a1"},{"keyB","b1"}{"keyC","c3"}}
String[][] f5 = {{"keyA","a1"},{"keyB","b2"}{"keyC","c1"}}
String[][] f6 = {{"keyA","a1"},{"keyB","b2"}{"keyC","c2"}}
...
有什么简单但很好的方法来做到这一点?
谢谢