SHARE
TWEET

LinkedHashSet

a guest Apr 18th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.LinkedHashSet;
  2. public class Main
  3. {
  4.     public static void main(String[] args) {
  5.         LinkedHashSet linkedHashSet = new LinkedHashSet<>();
  6.         linkedHashSet.add("5");
  7.         linkedHashSet.add("3");
  8.         linkedHashSet.add("1");
  9.        
  10.         System.out.println(linkedHashSet);
  11.     }
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top