Opening Hours :7AM to 9PM
import java.util.*; class LinkedHashSetAdd { void list() { LinkedHashSetal=new LinkedHashSet (); al.add(20); al.add(10); al.add(30); al.add(40); al.add(50); System.out.println("The List Items Are "+al); } } class Main { public static void main(String args[]) { LinkedHashSetAdd d=new LinkedHashSetAdd(); d.list(); } }
import java.util.*; class LinkedHashSetClear { void list() { LinkedHashSetal=new LinkedHashSet (); al.add(20); al.add(10); al.add(30); al.add(40); al.add(50); System.out.println("The List Items Are "+al); al.clear(); System.out.println("The List Items Are "+al); } } class Main { public static void main(String args[]) { LinkedHashSetClear d=new LinkedHashSetClear(); d.list(); } }
import java.util.*; class LinkedHashSetClone { void list() { LinkedHashSetal=new LinkedHashSet (); al.add(20); al.add(10); al.add(30); al.add(40); al.add(50); System.out.println("The List Items Are "+al); LinkedHashSet al2; al2=(LinkedHashSet) al.clone(); System.out.println("After Cloning Elements Are "+al2); } } class Main { public static void main(String args[]) { LinkedHashSetClone d=new LinkedHashSetClone(); d.list(); } }
import java.util.*; class LinkedHashSetRemove { void list() { LinkedHashSetal=new LinkedHashSet (); al.add(20); al.add(10); al.add(30); al.add(40); al.add(50); System.out.println("The List Items Are "+al); al.remove(50); System.out.println("The List Items Are "+al); } } class Main { public static void main(String args[]) { LinkedHashSetRemove d=new LinkedHashSetRemove(); d.list(); } }
import java.util.*; class LinkedHashSetSize { void list() { LinkedHashSetal=new LinkedHashSet (); al.add(20); al.add(10); al.add(30); al.add(40); al.add(50); System.out.println("The List Items Are "+al); System.out.println(al.size()); } } class Main { public static void main(String args[]) { LinkedHashSetSize d=new LinkedHashSetSize(); d.list(); } }