01 2015 档案

摘要:def hello(name : String = "ChinaSpark") : String = { //public static String hello(String name)={ return xxxxx } return "Hello : " + name } scala的方法是 都是以def开头 返回值写在后面 参数名: 参数类型 之间有冒号 和jav... 阅读全文
posted @ 2015-01-04 11:39 谷雨· 阅读(160) 评论(0) 推荐(0) 编辑