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.
如何以表格格式显示我的输出?我的数据结构是一个哈希映射。使用 swing,或者我可以将表格打印到文件中。
无论是纯文本文件还是JTable,您都需要遍历地图。
JTable