2015年8月9日
摘要:
package com.leegh.function/** * @author Guohui Li */object Curring { def main(args: Array[String]): Unit = { def muliple(x: Int, y: Int) = x * y ...
阅读全文
posted @ 2015-08-09 08:49
李格非
阅读(140)
推荐(0)
2015年8月8日
摘要:
package com.leegh.functionimport javax.swing.JFrameimport javax.swing.JButtonimport java.awt.event.ActionListenerimport java.awt.event.ActionEvent/** ...
阅读全文
posted @ 2015-08-08 16:13
李格非
阅读(451)
推荐(0)
2015年8月7日
摘要:
package com.leegh.function/** * @author Guohui Li */object PartiaAppliedFunction { def main(args: Array[String]): Unit = { val data = List(1, 2, 3...
阅读全文
posted @ 2015-08-07 19:42
李格非
阅读(95)
推荐(0)
2015年8月6日
摘要:
package com.leegh.function/** * @author Guohui Li */object ClosureOps { def main(args: Array[String]): Unit = { val data = List(1, 2, 3, 4, 5, 6) ...
阅读全文
posted @ 2015-08-06 19:51
李格非
阅读(79)
推荐(0)
2015年8月5日
摘要:
package com.leegh.function/** * @author Guohui Li */object PartiaAppliedFunction { def main(args: Array[String]): Unit = { val data = List(1, 2, 3...
阅读全文
posted @ 2015-08-05 08:08
李格非
阅读(136)
推荐(0)
2015年8月4日
摘要:
package com.leegh.oopimport scala.io.Source/** * @author Guohui Li */object FunctionOps { def main(args: Array[String]) { val width = args(0).toIn...
阅读全文
posted @ 2015-08-04 21:49
李格非
阅读(88)
推荐(0)
2015年8月3日
摘要:
package com.leegh.oop/** * @author Guohui Li *//** * 正则表达式 */object RegExpressOps { def main(args: Array[String]): Unit = { val regex = """([0-9]+...
阅读全文
posted @ 2015-08-03 16:55
李格非
阅读(108)
推荐(0)
2015年8月2日
摘要:
package com.leegh.oopimport scala.io.Sourceimport java.io.PrintWriterimport java.io.File/** * @author Guohui Li */object FileOps { def main(args: Arr...
阅读全文
posted @ 2015-08-02 08:26
李格非
阅读(120)
推荐(0)
2015年8月1日
摘要:
package com.leegh.oop/** * @author Guohui Li *//** * 包、类、对象、成员访问权限 * 伴生类,伴生对象访问权限 */package spark { package navigation { private[spark] class Navi...
阅读全文
posted @ 2015-08-01 11:05
李格非
阅读(120)
推荐(0)
2015年7月31日
摘要:
package com.leegh.oop/** * @author Guohui Li */class AbstractClassOps { var id: Int = _ //val id: Int = _ 错误 //val id: Int 错误}abstract class Supe...
阅读全文
posted @ 2015-07-31 08:37
李格非
阅读(99)
推荐(0)