Java 8 Learn Notes】的更多相关文章

Main reference: [1] http://winterbe.com/posts/2014/03/16/java-8-tutorial/ [2] https://plus.google.com/107771575694787223844/posts 1. Add default methods for Interfaces In java 8, Interface could have concrete methods using keyword 'default'. interfac…
Main reference [1] http://winterbe.com/posts/2014/07/31/java8-stream-tutorial-examples 1. How Streams Work A stream represents a sequence of elements and supports different kind of operations to perform computations upon those elements: List<String>…
The first day,when I read 'we need practice so we need a Javascript Interpreter.','Every browser has Javascript Interpreter.' we can find them in the SETTING or TOOLS-> Developement Tools/Web console or just right click the page INSPECT ELEMENT. so w…
I'm going to start to learn Javascript in this month. Someone told me you can't learn another language if you already have a native language. So we need to forget to learn better.Compare to remeber,it's really hard for me to forget.However I like cha…
1, 如何不排序而找到最大,次大或者最小值? var int max1, max2, min1; iterate array once: update max1, max2, min1, for example: if(A[i]>max1){max2=max1; max1=A[i];}... 2, 关于括号对称性的问题,如果String包含多种括号类型,需要用Stack.如果String只包含一种括号类型,例如"()",那么只需一个var int leftBrackets来存储'…
Linux Essentials Certification Globbing ls ?.txt --- ? stands for one character while * means one or more characters ls [F]*.txt --- list file starting with F ls [F]*.txt --- list file starting with F ls f[igh] --- the first character is f, but the s…
References: [1] http://www.tldp.org/LDP/Bash-Beginners-Guide/html/ 1. Executing programs from a script When the program being executed is a shell script, bash will create a new bash process using a fork. This subshell reads the lines from the shell s…
流程控制语句 流程控制语句的作用就是控制代码的执行流程. if and else var a = 10; if(a > 10){ print('ok'); }else if( 5 < a <=10 ){ print('soso'); }else{ print('not ok'); } for循环 var list = []; for(int i = 0; i<10; i++){ list.add(i); } list.forEach((item) => print(item)…
操作符 dart 有一套自己定义的操作符: 这里我就不再写了,直接copy一份官网的. 如果有过编程基础,上边展示的操作符应该都不陌生. 算术运算符 加: + 减: - 乘: * 除: / 取余: % 取模: ~/ 自增: ++var, var++ 自减: --var, var-- 比较运算符 ==: 等于 !=: 不等 >: 大于 <: 小于 >=: 大于等于 <=: 小于等于 类型判断 as: 类型转换 is: 判断是否是某种类型 is!: 判断是否不是某种类型 赋值操作符 =…
Functions Dart是一门面向对象的语言,所以即便是方法也是一个对象,它的类型是Function. 这就意味着方法可以指向变量,也可以作为方法中的参数供其他方法使用.甚至可以让 一个类作为一个方法,这种类叫Callable classes,即回调类. bool isTrule(String args) { return args != Null; } 定义一个方法注意返回值和参数. 在Dart中是不允许出现这种方法的: bool isTrule(String args) { return…