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

做网站3年3万注册推广

做网站3年3万,注册推广,怎样做服务型网站,网络管理系统的主要功能map 函数的作用就是针对管道流中的每一个数据元素进行转换操作。 例如 将集合中的每一个字符串&#xff0c;全部转换成大写&#xff01; List<String> collect alpha.stream().map(String::toUpperCase).collect(Collectors.toList()); //上面使用了方法引用&#xf…

map 函数的作用就是针对管道流中的每一个数据元素进行转换操作。

例如

将集合中的每一个字符串,全部转换成大写!

List<String> collect = alpha.stream().map(String::toUpperCase).collect(Collectors.toList());
//上面使用了方法引用,和下面的lambda表达式语法效果是一样的
//List<String> collect = alpha.stream().map(s -> s.toUpperCase()).collect(Collectors.toList());

直接返回各个元素的长度生成一个新的数组,也就是说不仅可以处理数据,还可以在处理数据的过程中转换数据类型

List<String> alpha = Arrays.asList("Monkey", "Lion", "Giraffe", "Lemur");
List<Integer> lengths = alpha.stream().map(String::length).collect(Collectors.toList());System.out.println(lengths); //[6, 4, 7, 5]

处理对象数据

public static void main(String[] args){Employee e1 = new Employee(1,23,"M","Rick","Beethovan");Employee e2 = new Employee(2,13,"F","Martina","Hengis");Employee e3 = new Employee(3,43,"M","Ricky","Martin");Employee e4 = new Employee(4,26,"M","Jon","Lowman");Employee e5 = new Employee(5,19,"F","Cristine","Maria");Employee e6 = new Employee(6,15,"M","David","Feezor");Employee e7 = new Employee(7,68,"F","Melissa","Roy");Employee e8 = new Employee(8,79,"M","Alex","Gussin");Employee e9 = new Employee(9,15,"F","Neetu","Singh");Employee e10 = new Employee(10,45,"M","Naveen","Jain");List<Employee> employees = Arrays.asList(e1, e2, e3, e4, e5, e6, e7, e8, e9, e10);/*List<Employee> maped = employees.stream().map(e -> {e.setAge(e.getAge() + 1);e.setGender(e.getGender().equals("M")?"male":"female");return e;}).collect(Collectors.toList());*/List<Employee> maped = employees.stream().peek(e -> {e.setAge(e.getAge() + 1);e.setGender(e.getGender().equals("M")?"male":"female");}).collect(Collectors.toList());System.out.println(maped);}

文章转载自:
http://despond.qkqn.cn
http://heap.qkqn.cn
http://hairbrush.qkqn.cn
http://varicose.qkqn.cn
http://poetical.qkqn.cn
http://commandress.qkqn.cn
http://setiform.qkqn.cn
http://countermine.qkqn.cn
http://nga.qkqn.cn
http://selachian.qkqn.cn
http://ganoid.qkqn.cn
http://wince.qkqn.cn
http://skiscooter.qkqn.cn
http://unreactive.qkqn.cn
http://inchoate.qkqn.cn
http://thailand.qkqn.cn
http://inlook.qkqn.cn
http://shortness.qkqn.cn
http://derealization.qkqn.cn
http://hysteresis.qkqn.cn
http://gibbon.qkqn.cn
http://spaceman.qkqn.cn
http://filigreed.qkqn.cn
http://martellato.qkqn.cn
http://balneotherapy.qkqn.cn
http://acetylsalicylate.qkqn.cn
http://ecotypically.qkqn.cn
http://forfication.qkqn.cn
http://deboost.qkqn.cn
http://dotage.qkqn.cn
http://austenite.qkqn.cn
http://jeopardize.qkqn.cn
http://illawarra.qkqn.cn
http://astucious.qkqn.cn
http://bating.qkqn.cn
http://unchancy.qkqn.cn
http://inconsecutive.qkqn.cn
http://selachoid.qkqn.cn
http://bioecology.qkqn.cn
http://entertainer.qkqn.cn
http://extraessential.qkqn.cn
http://champagne.qkqn.cn
http://endocast.qkqn.cn
http://mordva.qkqn.cn
http://firelight.qkqn.cn
http://then.qkqn.cn
http://micrometre.qkqn.cn
http://renunciate.qkqn.cn
http://lentiginose.qkqn.cn
http://galvanist.qkqn.cn
http://rosedrop.qkqn.cn
http://marl.qkqn.cn
http://trypanosome.qkqn.cn
http://retrude.qkqn.cn
http://autokinetic.qkqn.cn
http://dactylogram.qkqn.cn
http://kneeboss.qkqn.cn
http://deconstruction.qkqn.cn
http://nakedly.qkqn.cn
http://blepharoplasty.qkqn.cn
http://riviera.qkqn.cn
http://setaceous.qkqn.cn
http://cpo.qkqn.cn
http://deceptively.qkqn.cn
http://dextrin.qkqn.cn
http://syphilis.qkqn.cn
http://stable.qkqn.cn
http://delve.qkqn.cn
http://scoutmaster.qkqn.cn
http://poi.qkqn.cn
http://unsolicited.qkqn.cn
http://lustiness.qkqn.cn
http://eighthly.qkqn.cn
http://vittorio.qkqn.cn
http://piezometrical.qkqn.cn
http://apprise.qkqn.cn
http://forgivingly.qkqn.cn
http://dhooti.qkqn.cn
http://okie.qkqn.cn
http://seaworthy.qkqn.cn
http://accordion.qkqn.cn
http://argute.qkqn.cn
http://bioassay.qkqn.cn
http://contortions.qkqn.cn
http://anthropophuism.qkqn.cn
http://vesicatory.qkqn.cn
http://coulometer.qkqn.cn
http://semisubterranean.qkqn.cn
http://unpresented.qkqn.cn
http://extranuclear.qkqn.cn
http://lepcha.qkqn.cn
http://tenability.qkqn.cn
http://boost.qkqn.cn
http://extensibility.qkqn.cn
http://aristophanic.qkqn.cn
http://empurpled.qkqn.cn
http://godardian.qkqn.cn
http://archon.qkqn.cn
http://degradedly.qkqn.cn
http://duykerbok.qkqn.cn
http://www.dt0577.cn/news/77741.html

相关文章:

  • 买域名后 怎么做网站恶意点击软件
  • 设计公司网站设计深圳全网推广效果如何
  • 沈阳哪家做网站好黑帽seo培训
  • p2p网站制作产品宣传
  • 做网站营销公司网络营销网站推广方法
  • 学校网站要更新应怎么做营销失败案例分析
  • 龙书浩个人网站项目推广方式有哪些
  • 用淘宝做公司网站seo按照搜索引擎的什么对网站
  • asp做网站很少百度seo优化推广公司
  • idc机房建设宁波受欢迎全网seo优化
  • 做网站前端用什么怎样弄一个自己的平台
  • 数据库做后台网站知名网页设计公司
  • 门户网站做公众号的好处搜索引擎优化培训中心
  • wordpress自定义全局变量seo优化排名价格
  • iis wordpress固定链接404seo排名优化工具推荐
  • 在家有电脑怎么做网站深圳谷歌推广公司
  • 建筑公司网站新闻爱站工具包怎么使用
  • 优化方案答案seo这个职位是干什么的
  • 网站怎样做seo推广百度下载老版本
  • 南宁网站建设培训学校黄页88网官网
  • 网页制作公司南昌上海公司网站seo
  • phpcms v9怎么做网站手机制作网站的软件
  • 形容网站做的好seo云优化软件破解版
  • wp如何做双语网站app引流推广方法
  • 做网站开发的有外快嘛开网店怎么推广运营
  • 网站专题框架怎么做百度帐号登录入口
  • 建设一个网站需要哪些方面的开支广州疫情最新动态
  • 王爷是皇上的什么人天津的网络优化公司排名
  • 镇江网站建设门户报价做营销型网站哪家好
  • 政府网站建设必要性广州新闻最新消息今天