From 062631ef103b9de6bf3323c40d9e8a3ba3e32c14 Mon Sep 17 00:00:00 2001 From: Maddineni Akhil Date: Thu, 24 Jan 2019 10:13:06 +0530 Subject: [PATCH] added interfaces and classes in collections (#26548) * added interfaces and classes in collections * updated formatting as requested --- guide/english/java/collections/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/guide/english/java/collections/index.md b/guide/english/java/collections/index.md index 2d70335855..974859d8a9 100644 --- a/guide/english/java/collections/index.md +++ b/guide/english/java/collections/index.md @@ -3,7 +3,7 @@ title: Collections --- # Collections -A Collection in Java is a group of objects which can be ordered (List) or unordered (Set). The `Collection` interface is at the top of the hierarchy and all other classes and interfaces extend from this interface. It is located in the `java.util` package. +A Collection in Java is a group of objects which can be ordered (List) or unordered (Set). The `Collection` interface is at the top of the hierarchy and all other classes and interfaces extend from this interface. It is located in the `java.util` package. It provides many interfaces like `Set`, `List`, `Queue`, `Deque` etc. and classes like `ArrayList`, `Vector`, `LinkedList`, `PriorityQueue`, `HashSet`, `LinkedHashSet` etc. The `Collection` interface also extends the `Iterable` interface, which means that every collection in java must be iterable. This in turn means that a `for-each` loop can be used to fetch elements from a collection in a sequence.