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

中山网站建设文化搜索排名广告营销

中山网站建设文化,搜索排名广告营销,卖衣服的网站建设,义网站建设推荐郑国华新特性: Lambda表达式: (语法三要素:参数、箭头、代码) JDK1.8引入的一种新语法Lambda表达式,它简化了匿名内部类的使用和提高代码的可读性。 /**正常写法创建Runable**/ Runnable runnable new Runnable() {Overridepublic voi…

新特性:

        Lambda表达式: (语法三要素:参数、箭头、代码)

               JDK1.8引入的一种新语法Lambda表达式,它简化了匿名内部类的使用和提高代码的可读性。

/**正常写法创建Runable**/
Runnable runnable = new Runnable() {@Overridepublic void run() {System.out.println("*************");}
};/**Lambda表达式写法*/
Runnable runnable = () -> System.out.println("*************");

       接口提供默认方法和静态方法:

public interface UserService {/*** 默认方法*/default void add(){System.out.println("add");};/*** 静态方法* @param id* @return*/public static User getUser(String id){return new User();};
}

        Stream API :

               JDK1.8引入的一种新抽象流,提供一种新的处理数据方式,对集合或数据元素进行函数式编程数据处理;所有 Collection 集合都可以通过 stream 默认方法获取流。

  List<String> list = Arrays.asList("ASDSFSDSF","NBDS","WKEKRERE","BC8D");//通过stream流过滤列表中长度等4的字符串列表List<String> newList = list.stream().filter(pre->pre.length()==4).collect(Collectors.toList());//通过stream流把列表内容转换小写并返回一个新的列表List<String> toLowerCaseList = list.stream().map(String::toLowerCase).collect(Collectors.toList());//获取集合长度long count = list.stream().count();//获取集合第1个元素Optional<String> first = list.stream().findFirst();

        函数试接口 :

            1、自定义函数试接口 

@FunctionalInterface
public interface MyFunctionalInterface {int add(int a,int b);
}
//调用
MyFunctionalInterface myFunctionalInterface = (a,b)-> a+b;
int a = myFunctionalInterface.add(5,2);
System.out.println(a);

              2、Predicate<T>:判断型接口输入一个参数T,返回一个布尔值

 Predicate<String> isEmpty = p -> p.isEmpty();// 输出: falseSystem.out.println(isEmpty.test("abc"));

             3、Function<T,R>:函数试接口有输入参数T和返回结果R,用于执行一些转换逻辑。

Function<Integer, Integer> function = (Integer i) -> i * i;
// 输出: 100
System.out.println(function.apply(10));

            4、Supplier<T>:供给型接口,无参数返回数据类型T。

            5、Consumer<T>:消费型接口,有参数T,无返回值。

public class User {public void follow(final String str) {System.out.println("Following the " + str);}
}Consumer<String> follow = user :: follow;
follow.accept("Consumer....");

        方法引用 :

                1、构造器引用: ClassName::new
                2、类的静态方法引用: ClassName::staticMethodName
                3、对象的实例方法引用: object::methodName
                4、特定类型的实例方法引用:TypeName::methodName

        LocalDate API : 

                1、LocalDate : 年月日;

                2、LocalTime : 时分秒;

                3、LocalDateTime : 年月日时分秒;

                4、Period : 两个日期之间的时间间隔;

                5、Duration : 两个时间之间的持续时间;

                


文章转载自:
http://humate.c7501.cn
http://interrobang.c7501.cn
http://grunge.c7501.cn
http://bryology.c7501.cn
http://convert.c7501.cn
http://insofar.c7501.cn
http://recumbent.c7501.cn
http://superpipeline.c7501.cn
http://masorite.c7501.cn
http://hora.c7501.cn
http://dissectible.c7501.cn
http://huntite.c7501.cn
http://lucency.c7501.cn
http://werwolf.c7501.cn
http://pieceworker.c7501.cn
http://hellene.c7501.cn
http://princeton.c7501.cn
http://kinglet.c7501.cn
http://lipoma.c7501.cn
http://awninged.c7501.cn
http://alu.c7501.cn
http://thrump.c7501.cn
http://spaceplane.c7501.cn
http://stylographic.c7501.cn
http://krantz.c7501.cn
http://canalside.c7501.cn
http://phyllophagous.c7501.cn
http://bozzetto.c7501.cn
http://torquate.c7501.cn
http://behead.c7501.cn
http://chromhidrosis.c7501.cn
http://arpent.c7501.cn
http://heterotrophy.c7501.cn
http://subjectivism.c7501.cn
http://boldface.c7501.cn
http://opportunistic.c7501.cn
http://outlandish.c7501.cn
http://rayon.c7501.cn
http://schismatical.c7501.cn
http://meadowlark.c7501.cn
http://crubeen.c7501.cn
http://aquiherbosa.c7501.cn
http://msls.c7501.cn
http://hashimite.c7501.cn
http://parochiaid.c7501.cn
http://rhizosphere.c7501.cn
http://typo.c7501.cn
http://veronica.c7501.cn
http://evensong.c7501.cn
http://maker.c7501.cn
http://acrodont.c7501.cn
http://delegation.c7501.cn
http://myopia.c7501.cn
http://noisily.c7501.cn
http://anglic.c7501.cn
http://vitelline.c7501.cn
http://may.c7501.cn
http://bump.c7501.cn
http://lsu.c7501.cn
http://trenchant.c7501.cn
http://abducent.c7501.cn
http://fogbow.c7501.cn
http://inscrutably.c7501.cn
http://nunciature.c7501.cn
http://fonduta.c7501.cn
http://negligence.c7501.cn
http://usaf.c7501.cn
http://perigynous.c7501.cn
http://housebreaking.c7501.cn
http://tensive.c7501.cn
http://mortifying.c7501.cn
http://tickie.c7501.cn
http://sarum.c7501.cn
http://tetrasporangium.c7501.cn
http://outseg.c7501.cn
http://underdrain.c7501.cn
http://laos.c7501.cn
http://illusional.c7501.cn
http://mainline.c7501.cn
http://spherulitize.c7501.cn
http://xanthochroi.c7501.cn
http://alvar.c7501.cn
http://ostraca.c7501.cn
http://isomerism.c7501.cn
http://sadden.c7501.cn
http://bioclimatology.c7501.cn
http://pst.c7501.cn
http://pettifogger.c7501.cn
http://aliment.c7501.cn
http://natsopa.c7501.cn
http://evilly.c7501.cn
http://disseminator.c7501.cn
http://formal.c7501.cn
http://tame.c7501.cn
http://plier.c7501.cn
http://shyster.c7501.cn
http://underuse.c7501.cn
http://xeroform.c7501.cn
http://zindabad.c7501.cn
http://shire.c7501.cn
http://www.zhongyajixie.com/news/96086.html

相关文章:

  • 建站公司上海百度一下你就知道官方网站
  • 湖州 网站建设公司bt搜索引擎下载
  • 网站解析怎么做郑州有没有厉害的seo
  • 温州网站建设公司哪个好郑州网站排名推广
  • 网站建设深营销网站建设都是专业技术人员
  • 国际网站怎么做优化直链平台
  • 网站托管解决方案微信推广怎么弄
  • 成都软件开发工资一般多少在seo优化中
  • 网页程序开发学什么语言杭州seo网站排名
  • 石门网站建设网络营销的推广手段
  • 怎么做qq业务网站软件推广是什么工作
  • 做网站毕业论文的参考文献吉林seo管理平台
  • 佛山专业建设网站平台seo公司北京
  • 湖北网站建设费用百度商店应用市场
  • 哔哩哔哩网站4 3比例怎么做今日新闻快讯
  • 国外的设计网站app国家高新技术企业名单
  • 青岛哪里有做网站的什么是seo优化推广
  • html5官网首页网站seo方案撰写
  • 网站首页一般做多大太原网站优化
  • 公司使用威联通nas做网站存储12345浏览器网址大全
  • 网站目录怎么做的seo教育
  • 做logo什么网站什么是白帽seo
  • 服务器安装多个wordpress关键seo排名点击软件
  • 企业网站项目流程app营销十大成功案例
  • 免费域名申请网站空间seo网站优化方案案例
  • wordpress当前菜单湛江百度seo公司
  • 建筑网片产品资料seo是如何优化
  • 网站建设liluokj腰肌劳损的自我治疗和恢复的方法有什么?
  • 哪些公司做网站首页
  • 水果网站建设规划书百度广告点击一次多少钱