❮ Previous Next ❯

LinkedHashMap Interface

LinkedHashMapDemo.java

import java.util.*;
class LinkedHashMapDemo
{
public static void main(String[] args)
{
LinkedHashMaphm=newLinkedHashMap();
hm.put(100,"Tapuuu");
hm.put(101,"Silan");
hm.put(102,"Akshay");
for(Map.Entry m:hm.entrySet())
{
System.out.println(m.getKey()+" "+m.getValue());
}
}
}
Output

100 Tapuuu
101 Silan
102 Akshay

❮ Previous Next ❯



  Tutorials

Popular Links

Contact Us

address Plot No-741,2ND Floor
Opp. Bhagabati Temple,Jayadev Vihar
      Bhubaneswar-751013
      Email: info@silantechnology.com
      Phone: 0674-2361252
address
39877, sundale dr, apt#101, Fremont, California 94538, USA
       Phone: +1(262)388-7619

facebook twitter google linked in

© 2018 Silan Technology. All Rights Reserved