Skip to content

Commit dfe5bfe

Browse files
committed
Linked Hash Set Practice Added.
Signed-off-by: Someshdiwan <[email protected]>
1 parent 6104848 commit dfe5bfe

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package LinkedHashSetDemo;
2+
3+
import java.util.LinkedHashSet;
4+
5+
class LinkedHashSetPractice {
6+
public static void main(String[] args) {
7+
LinkedHashSet<String> playlist = new LinkedHashSet<String>();
8+
playlist.add("Moonlight Sonata");
9+
playlist.add("The Godfather");
10+
playlist.add("Whiplash");
11+
playlist.add("Whiplash");
12+
13+
System.out.println(playlist);
14+
}
15+
}

0 commit comments

Comments
 (0)