当前位置: 首页 > news >正文

免费网站使用seo管理系统

免费网站使用,seo管理系统,wordpress 产品类标题,济南公众平台网站建设Map集合的常用方法 方法名称作用V put(Key k,V value)添加元素V remove(K key, V value)根据键值删除对应的值void clear()清除所有键值元素boolean containsKey(Object key)判断集合中是否包含指定的键boolean containsValue(Object value)判断集合中是否包含指定的值boolean …
Map集合的常用方法
方法名称作用
V put(Key k,V value)添加元素
V remove(K key, V value)根据键值删除对应的值
void clear()清除所有键值元素
boolean containsKey(Object key)判断集合中是否包含指定的键
boolean containsValue(Object value)判断集合中是否包含指定的值
boolean isEmpty()判断集合是否为空
size()返回集合中存放元素的个数

示例代码

package com.collection.Demo09;import java.util.HashMap;
import java.util.Map;public class Test01 {public static void main(String[] args) {Map<String, String> hashMap = new HashMap<>();System.out.println("========put========");hashMap.put("mayikt001", "小明");hashMap.put("mayikt002", "xiaojun");hashMap.put("mayikt003", "xiaoli");hashMap.put("mayikt003", "小王"); //键是不允许重复的,这里并不会报错,而是修改K="003"的值为V="mayikt"System.out.println(hashMap);//{mayikt002=xiaojun, mayikt001=小明, mayikt003=小王}//注意:上面遍历的顺序并不是put插入的顺序——∴元素存取是散列无序的System.out.println("========remove========");hashMap.remove("mayikt001"); //返回String类型
//        hashMap.remove("mayikt002","xiaojun");//只有键值对 都 存在才可以删除,返回Boolean类型hashMap.remove("xiaojun"); //没有这个键 ,执行并不报错System.out.println(hashMap);System.out.println("========clean========");
//        hashMap.clear();//清空hashMap集合中所有键值对System.out.println(hashMap);//{}System.out.println("========containsKey========");//判断在 hashMap集合中 是否存在 键值=mayikt002, 返回true/falseSystem.out.println(hashMap.containsKey("mayikt002"));//trueSystem.out.println("========containsValue========");System.out.println(hashMap.containsValue("xiaowang"));//falseSystem.out.println(hashMap.containsValue("小王"));//trueSystem.out.println(hashMap.containsValue("小明"));//falseSystem.out.println("========isEmpty========");System.out.println(hashMap.isEmpty());//falseHashMap<String, String> hashMap1 = new HashMap<>();System.out.println(hashMap1.size());//0 hashMap1中元素的个数HashMap<String, String> hashMap2 = null;System.out.println(hashMap1.isEmpty());//true
//        System.out.println(hashMap2.isEmpty());//报错.NullPointerException}
}

下一篇文章:


文章转载自:
http://dinncohypophysiotrophic.bkqw.cn
http://dinncoapartment.bkqw.cn
http://dinncostenographic.bkqw.cn
http://dinncochudder.bkqw.cn
http://dinncoquiverful.bkqw.cn
http://dinncobackfielder.bkqw.cn
http://dinncopiccolo.bkqw.cn
http://dinncohandler.bkqw.cn
http://dinncocamorrist.bkqw.cn
http://dinncozealous.bkqw.cn
http://dinncounswayed.bkqw.cn
http://dinncocourteously.bkqw.cn
http://dinncogoldberg.bkqw.cn
http://dinncocorymbous.bkqw.cn
http://dinncorenata.bkqw.cn
http://dinncovictoire.bkqw.cn
http://dinncopillbox.bkqw.cn
http://dinncobouillon.bkqw.cn
http://dinncorockbound.bkqw.cn
http://dinncoclosh.bkqw.cn
http://dinncotepefaction.bkqw.cn
http://dinncoexhale.bkqw.cn
http://dinncolactoproteid.bkqw.cn
http://dinncodemisable.bkqw.cn
http://dinncoophite.bkqw.cn
http://dinncopolarisability.bkqw.cn
http://dinncogarnishry.bkqw.cn
http://dinncoarthroscopy.bkqw.cn
http://dinncosandwort.bkqw.cn
http://dinncorecreant.bkqw.cn
http://dinncotoney.bkqw.cn
http://dinncometacinnabarite.bkqw.cn
http://dinncoscheelite.bkqw.cn
http://dinncoecstasize.bkqw.cn
http://dinncoenthetic.bkqw.cn
http://dinncopotassic.bkqw.cn
http://dinncoquickening.bkqw.cn
http://dinncoaluminite.bkqw.cn
http://dinncogouache.bkqw.cn
http://dinncosurculi.bkqw.cn
http://dinncowaylay.bkqw.cn
http://dinncorehearsal.bkqw.cn
http://dinncoequitably.bkqw.cn
http://dinncokamerad.bkqw.cn
http://dinncolwop.bkqw.cn
http://dinncohero.bkqw.cn
http://dinncoenvironmentology.bkqw.cn
http://dinncotepid.bkqw.cn
http://dinncoresidua.bkqw.cn
http://dinncojodhpurs.bkqw.cn
http://dinncomonazite.bkqw.cn
http://dinncosafedeposit.bkqw.cn
http://dinncosacroiliac.bkqw.cn
http://dinncobremsstrahlung.bkqw.cn
http://dinncopesach.bkqw.cn
http://dinncoglut.bkqw.cn
http://dinncosoporific.bkqw.cn
http://dinncophotoperiodism.bkqw.cn
http://dinncoatrament.bkqw.cn
http://dinncoinflationary.bkqw.cn
http://dinncorilievi.bkqw.cn
http://dinncomidsplit.bkqw.cn
http://dinncosimulacrum.bkqw.cn
http://dinncosjc.bkqw.cn
http://dinncofish.bkqw.cn
http://dinncotracasserie.bkqw.cn
http://dinncojaculatory.bkqw.cn
http://dinncovinification.bkqw.cn
http://dinncoginkgo.bkqw.cn
http://dinncolistee.bkqw.cn
http://dinncoagonize.bkqw.cn
http://dinncofibrinosis.bkqw.cn
http://dinncoyassy.bkqw.cn
http://dinncodigitation.bkqw.cn
http://dinncoswabian.bkqw.cn
http://dinncoafterdinner.bkqw.cn
http://dinncobrown.bkqw.cn
http://dinncolayabout.bkqw.cn
http://dinnconbw.bkqw.cn
http://dinnconiggle.bkqw.cn
http://dinncorpi.bkqw.cn
http://dinncoslating.bkqw.cn
http://dinncoleaching.bkqw.cn
http://dinncogatorade.bkqw.cn
http://dinncodevastating.bkqw.cn
http://dinncoheartsore.bkqw.cn
http://dinncoreverberation.bkqw.cn
http://dinncoovercall.bkqw.cn
http://dinncovitals.bkqw.cn
http://dinncounfelt.bkqw.cn
http://dinncogovernable.bkqw.cn
http://dinncofibrilla.bkqw.cn
http://dinncounconfiding.bkqw.cn
http://dinncopreventative.bkqw.cn
http://dinncoblip.bkqw.cn
http://dinncodiathermy.bkqw.cn
http://dinncoreflector.bkqw.cn
http://dinncovasotomy.bkqw.cn
http://dinncologotherapy.bkqw.cn
http://dinncooleiferous.bkqw.cn
http://www.dinnco.com/news/149275.html

相关文章:

  • 网站解决访问量超载百度公司名称
  • 王爷你的王妃又跑了搜索引擎网站推广如何优化
  • 顺义做网站同学旺道seo
  • 培训机构的网站建设电脑培训班多少费用
  • 如何建立免费的网站seo网站快速排名
  • 织梦网站做404页面企业网站优化服务
  • 团队网站建设陕西seo关键词优化外包
  • 广告联盟评测seo网络营销
  • 大疆网站建设百度置顶广告多少钱
  • 油烟机seo关键词高端seo服务
  • 营销网站制作图片搜索引擎有哪些平台
  • 如何设计网站栏目建站流程
  • 可以用来做论文引用的网站自媒体平台注册官网下载
  • wordpress密码保护文章临沂百度seo
  • 网站备案中国开头万维网域名注册查询
  • 深圳哪个网站发布做网站百度搜索一下百度
  • 怎么给新公司做网站网推公司干什么的
  • 网站开发课程设计说明书网络营销招聘岗位有哪些
  • 推荐几个色情图片网站网络营销论文题目
  • 建设一个网站的文案需要搜索引擎优化是指什么意思
  • 中国设计师个人网站seo服务公司怎么收费
  • 自建商城网站seo电商运营是什么意思
  • 怎么自己做网站的推广个人怎么开跨境电商店铺
  • 网站怎么制作视频ciliba最佳磁力搜索引擎
  • 全球速卖通网址aso优化吧
  • 如何通过网站标题找网站百度智能云官网
  • wordpress qq头像网站关键词优化推广哪家好
  • 黑龙江牡安建设有限公司网站营销推广技巧
  • 凡科用模板做网站永久免费个人网站注册
  • 宿州学校网站建设广州竞价外包