标签:update 1.0 date() ati set sel ring var javac
object wb{ def main(args:Array[String]){ println("Happy everyday!DATA-CENTER!") println(new java.util.Date()) }
root@VM-52-248-ubuntu:/var/www/html/scalaw# ^C root@VM-52-248-ubuntu:/var/www/html/scalaw# vim wb.scala root@VM-52-248-ubuntu:/var/www/html/scalaw# scalac wb.scala root@VM-52-248-ubuntu:/var/www/html/scalaw# scala wb Happy everyday! Sat Apr 29 02:21:37 CST 2017 root@VM-52-248-ubuntu:/var/www/html/scalaw# vim wb.scala root@VM-52-248-ubuntu:/var/www/html/scalaw# scalac wb.scala root@VM-52-248-ubuntu:/var/www/html/scalaw# scala wb Happy everyday!DATA-CENTER! Sat Apr 29 02:23:02 CST 2017 root@VM-52-248-ubuntu:/var/www/html/scalaw# scala wb Happy everyday!DATA-CENTER! Sat Apr 29 02:24:12 CST 2017 root@VM-52-248-ubuntu:/var/www/html/scalaw#
w
object w{ def main(args:Array[String]){ println("Happy everyday!") } } ~ ~ ~
root@VM-52-248-ubuntu:/var/www/html# vim w.java root@VM-52-248-ubuntu:/var/www/html# javac w.java root@VM-52-248-ubuntu:/var/www/html# java w Hello World root@VM-52-248-ubuntu:/var/www/html# apt-get install scala Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libhawtjni-runtime-java libjansi-java libjansi-native-java libjline2-java scala-library scala-parser-combinators scala-xml Suggested packages: scala-doc The following NEW packages will be installed: libhawtjni-runtime-java libjansi-java libjansi-native-java libjline2-java scala scala-library scala-parser-combinators scala-xml 0 upgraded, 8 newly installed, 0 to remove and 162 not upgraded. Need to get 23.6 MB of archives. After this operation, 28.1 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://mirrors.tencentyun.com/ubuntu xenial/universe amd64 libhawtjni-runtime-java all 1.10-1 [54.0 kB] Get:2 http://mirrors.tencentyun.com/ubuntu xenial/universe amd64 libjansi-native-java all 1.0-4 [35.3 kB] Get:3 http://mirrors.tencentyun.com/ubuntu xenial/universe amd64 libjansi-java all 1.4-3 [57.4 kB] Get:4 http://mirrors.tencentyun.com/ubuntu xenial/universe amd64 libjline2-java all 2.11-4 [107 kB] Get:5 http://mirrors.tencentyun.com/ubuntu xenial/universe amd64 scala-library all 2.11.6-6 [9239 kB] Get:6 http://mirrors.tencentyun.com/ubuntu xenial/universe amd64 scala-parser-combinators all 1.0.3-3 [355 kB] Get:7 http://mirrors.tencentyun.com/ubuntu xenial/universe amd64 scala-xml all 1.0.3-3 [601 kB] Get:8 http://mirrors.tencentyun.com/ubuntu xenial/universe amd64 scala all 2.11.6-6 [13.1 MB] Fetched 23.6 MB in 2s (8880 kB/s) Selecting previously unselected package libhawtjni-runtime-java. (Reading database ... 70092 files and directories currently installed.) Preparing to unpack .../libhawtjni-runtime-java_1.10-1_all.deb ... Unpacking libhawtjni-runtime-java (1.10-1) ... Selecting previously unselected package libjansi-native-java. Preparing to unpack .../libjansi-native-java_1.0-4_all.deb ... Unpacking libjansi-native-java (1.0-4) ... Selecting previously unselected package libjansi-java. Preparing to unpack .../libjansi-java_1.4-3_all.deb ... Unpacking libjansi-java (1.4-3) ... Selecting previously unselected package libjline2-java. Preparing to unpack .../libjline2-java_2.11-4_all.deb ... Unpacking libjline2-java (2.11-4) ... Selecting previously unselected package scala-library. Preparing to unpack .../scala-library_2.11.6-6_all.deb ... Unpacking scala-library (2.11.6-6) ... Selecting previously unselected package scala-parser-combinators. Preparing to unpack .../scala-parser-combinators_1.0.3-3_all.deb ... Unpacking scala-parser-combinators (1.0.3-3) ... Selecting previously unselected package scala-xml. Preparing to unpack .../scala-xml_1.0.3-3_all.deb ... Unpacking scala-xml (1.0.3-3) ... Selecting previously unselected package scala. Preparing to unpack .../scala_2.11.6-6_all.deb ... Unpacking scala (2.11.6-6) ... Setting up libhawtjni-runtime-java (1.10-1) ... Setting up libjansi-native-java (1.0-4) ... Setting up libjansi-java (1.4-3) ... Setting up libjline2-java (2.11-4) ... Setting up scala-library (2.11.6-6) ... Setting up scala-parser-combinators (1.0.3-3) ... Setting up scala-xml (1.0.3-3) ... Setting up scala (2.11.6-6) ... update-alternatives: using /usr/share/scala-2.11/bin/scala to provide /usr/bin/scala (scala) in auto mode root@VM-52-248-ubuntu:/var/www/html#
标签:update 1.0 date() ati set sel ring var javac
原文地址:http://www.cnblogs.com/yuanjiangw/p/6784158.html