package com.bjsxt.scala case class Person2(var name:String,age:Int) object Lesson_caseClass { def main(args: Array[String]): Unit = { val p1 = Person2... ...
分类:
其他好文 时间:
2018-07-07 22:42:43
阅读次数:
163
package com.bjsxt.scala object Lesson_string { def main(args: Array[String]): Unit = { val s = "bjsxt" val s1 = "BJSXT" // println(s.indexOf(97)) // p... ...
分类:
其他好文 时间:
2018-07-07 22:39:29
阅读次数:
178
package com.bjsxt.scala object Lesson_match { def main(args: Array[String]): Unit = { val tuple = (1,"hello",'c',1.0,true) val iter = tuple.productIte... ...
分类:
其他好文 时间:
2018-07-07 22:38:33
阅读次数:
210
package com.bjsxt.scala object Lesson_collections { def main(args: Array[String]): Unit = { /** * 元组 * 1.元组最多支持22元素 * 2.声明元组 可以new 可以不new 也可以直接() * 3.... ...
分类:
其他好文 时间:
2018-07-07 22:30:47
阅读次数:
155
package com.bjsxt.scala import java.util.Date object Lesson_fun { def main(args: Array[String]): Unit = { /** * 1.方法定义 * 1.方法定义使用“def” * 2.方法可以传参,参数类型... ...
分类:
其他好文 时间:
2018-07-07 22:19:15
阅读次数:
178
Java Web Lesson 12—Tomcat根据JSP生成Servlet机制解析 JavaServer Pages(JSP) 简介 在传统的网页html文件中加入java程序片段和JSP标签,就构成了JSP网页;java程序片段可以操纵数据库、重新定向网页以及发送邮件,实现建立动态网站所需要的 ...
分类:
Web程序 时间:
2018-07-03 22:27:44
阅读次数:
188
In this lesson, I refactor a simple Counter component connected to Redux to use Unstated instead. I explain some of the cognitive overhead of working ...
分类:
其他好文 时间:
2018-06-17 12:31:11
阅读次数:
177
In this lesson I show how to use webpack to code split based on route in VueJS. Code splitting is a useful tool to help eliminate unused code and only ...
分类:
Web程序 时间:
2018-05-23 22:04:12
阅读次数:
328
In this lesson, we’ll create a safe function that gives us a flexible way to create Maybes based on a value and a predicate function that we supply. W ...
分类:
编程语言 时间:
2018-05-11 23:54:24
阅读次数:
195
In this lesson, we’ll look at the propPath utility function. We’ll ask for a property multiple levels deep in an object and get back a Maybe. We’ll ge ...
分类:
数据库 时间:
2018-05-11 23:47:33
阅读次数:
231