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.
我有 2 个数组:
String [] head = {"Name", "Date of birth", "PPS number"}; String [] personal= {value1, value2, value3};
我希望这两个数组以下列方式打印出来:
head[0] tab personal[0] head[1] tab personal[1] head[2] tab personal [2]
我尝试了不同的选项,但无法正常工作。有什么建议么?提前谢谢了!
拉法尔
由于您没有提供任何尝试的证据,我假设您没有尝试过:
for(int i = 0; i < head.length; i++) System.out.println(head[i]+"\t"+personal[i]);
至少我认为这是你正在寻找的。