我正在学习一点Java,我在Google书籍的Java教科书中发现了这个问题,我已经研究了一段时间,出于某种原因,这些似乎应该很简单。任何人都很无聊并想向我展示这在 Java 代码中应该是什么样子的??
(Using ArrayList) Write a program that creates an ArrayList, adds a Loan
object, a Date object, a string, a JFrame object, and a Circle object to the list,
and uses a loop to display all the elements in the list by invoking the object’s
toString() method.