public static void main(String[] args){ String[] a = new String[]{"1","5","3","7"}; String[] b = new String[]{"2","3","4"}; String[] arrResult = arrContrast(a, b); …
由于中文参考资料很少,参考链接: https://www.oschina.net/translate/109-new-features-in-jdk-10 http://chuansong.me/n/2365239553812 1.jdk10.0特性,局部变量类型推断,var保留字,只要编译器可以推断此种类型,你不再需要专门声明一个局部变量的类型.对于JDK10 来讲最为显著的就是引入了局部类型变量推断这个特性 package com.bie.lesson1; public class Stud…