问题描述
如何在单独的行中显示每个对象的arraylist?我目前有此代码,它仅显示在一行中。我想使用“ \ n”,但是如何在JOptionPane中添加它?
ArrayList<String> ordered = new ArrayList<String>();
case "Sales Report File":
JOptionPane.showMessageDialog(null,"Items list sold: " +
ordered(this outputs in one line),"Sales Report ~ ",JOptionPane.PLAIN_MESSAGE);
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)