摘要:
An expression has a value; a statement carries out an action. Conditional Expressions: IF-ELSE In Scala, an if / else has a value. For example: if (x 阅读全文
摘要:
Interpreter Values and Variables You are encouraged to use a val unless you really need to change the contents. The type of a variable or function is 阅读全文