How do I insert values into a Map?

前端 未结 4 430
日久生厌
日久生厌 2020-12-11 14:46

I am trying to create a map of strings to strings. Below is what I\'ve tried but neither method works. What\'s wrong with it?

public class Data
{
    private         


        
4条回答
  •  情书的邮戳
    2020-12-11 15:07

    Try this code

    HashMap map = new HashMap();
    map.put("EmpID", EmpID);
    map.put("UnChecked", "1");
    

提交回复
热议问题