0
我有一個包含事件objects.Event對象一個ArrayList是由一個ID,日期和主題charactirised,我打印出數組的內容,我想打印一個ArrayList
ArrayList.get(INDEx)
和
System.out.println(list)
(名單是我的ArrayList) ,但我得到作爲輸出:
[[email protected], [email protected],
[email protected],[email protected], [email protected],
[email protected], [email protected]]
研究所我的ArrayList的真正內容(metier是包的名稱)的ead,有什麼幫助嗎?
重寫'Event'類的'toString()'方法? – Crozin