Tuesday, October 5, 2021

 


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());

  }

  }

 

Related Posts:

  • Introduction to Test Automation What is Test Automation: Test Automation or Automation Testing is a method of automating execution of tests and then  compares actual test results with predicted or expected results using special softwar… Read More
  • ArrayList vs LinkedList Difference between ArrayList and LinkedList? Similarities: Both implements List interface(linkedlist also implements deque interface), maintains insertion order and can contain duplicate elements. Both are non synchroni… Read More
  • Introduction to Software Testing What is Software Testing: Software Testing is a process of verifying or validating an application with the intention of finding bugs or defects. This can be done through either manually or using automation tool.… Read More
  • What is Manual Testing and its Advantages, Limitations Manual testing is a testing process that is carried out manually(executing test cases) in order to find defects without the usage of tools or automation scripting. It is the most primitive of all testing types and… Read More
  • Encapsulation in Java Encapsulation is to make sure that "sensitive" data is hidden from users. To achieve this, you must: declare class variables/attributes as private (only accessible within the same class) provide public setter and getter m… Read More

0 comments:

Post a Comment

Selenium Training in Realtime

Blog helps to a student or IT employee to develop or improve skills in Software Testing.

Followers

About Me

My photo
Hyderabad, Andhra Pradesh, India
I am Automation Testing Professional. I have completed my graduation in B.Tech (Computers) from JNTU Hyderabad and started my career in Software Testing accidentally since then, I passionate on learning new technologies

Contact Form

Name

Email *

Message *

Popular Posts