Skip to content

Commit 9fe7b28

Browse files
authored
Update Using Generics.md
1 parent 390e2d2 commit 9fe7b28

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tutorials/learnjavaonline.org/en/Using Generics.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,18 @@ rice
3232
Solution
3333
--------
3434
List food<String> = new ArrayList<>();
35+
3536
food.add("milk");
37+
3638
food.add("cheese");
39+
3740
food.add("chicken");
41+
3842
food.add("carrot");
43+
3944
food.add("rice");
4045

4146
for (String item : food) {
47+
4248
System.out.println(item);
4349
}

0 commit comments

Comments
 (0)