package qasignpackage;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
public class SampleTest {
public static void main(String[] args) {
HashMap<String, String> hmap=new HashMap<String,String>();
hmap.put("1", "qa");
hmap.put("2", "sign");
hmap.put("3", "selenium");
for (Entry<String,String> entry: hmap.entrySet()) {
System.out.println("Key = " + entry.getKey() +
", Value = " + entry.getValue());
}
}
0 comments:
Post a Comment