- 博客(4)
- 资源 (3)
- 收藏
- 关注
原创 流复制
<br />public class StreamCopy { public static void main(String... args) throws IOException { // copyStreamWithChannel(System.in, System.out); FileInputStream fin = new FileInputStream("data/data.txt"); copyStreamWithChannel(fin, System.out); f
2010-10-09 08:37:00 364
原创 kmp in scala
<br />package org.kmpobject Kmp { private var i = 0 private var j = 0 def apply(pattern: String, target: String): Int = { //max self matched char number val p = new Array[Int](pattern.length) //pre process p(0) = 0 for (
2010-08-16 20:25:00 710
原创 maven
<br />maven may be the best tool to manager scala application,and lift web app is directly supported.<br />IDEs for scala is not nice. Netbeans reports errors by mistake,Eclipse runs extremely slow,intellij idea may be somewhat better,but not better enough
2010-07-22 21:46:00 297
原创 最大公约数 --scala
def gcd(x:Int,y:Int):Int = {if x == 0 y else gcd(y%x,y)}尾递归不用消除
2010-07-05 10:49:00 1647
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人