We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd1a574 commit 2ae9130Copy full SHA for 2ae9130
2 files changed
out/production/DataStructure/top/ligongd/collections/compareto/SortDemos.class
86 Bytes
src/top/ligongd/collections/compareto/SortDemos.java
@@ -19,6 +19,11 @@ public static void main(String[] args) {
19
personList.add(person1);
20
personList.add(person2);
21
personList.add(person3);
22
+
23
+ for(Person person: personList){
24
+ System.out.println(person.getName() + " " + person.getAge());
25
+ }
26
27
Collections.sort(personList);
28
29
for(Person person: personList){
0 commit comments