Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
pp:scalalab1 [2022/04/30 10:00]
vbadoiu
pp:scalalab1 [2022/05/07 17:26] (current)
mihai.calitescu fixed typo
Line 6: Line 6:
   * keep your code clean and well-structured.   * keep your code clean and well-structured.
  
-** Make sure you have done your [[pp:​scala-environment | scala environment]] setup read **+** Make sure you have done your [[pp:​scala-environment | scala environment]] setup ready ** 
 ** Create a new Scala worksheet to write your solutions ** ** Create a new Scala worksheet to write your solutions **
  
Line 142: Line 143:
 <code Scala> <code Scala>
 object Main { object Main {
-  def main(args: Array[String]):​ Unit =+  def main(args: Array[String]):​ Unit = {
     println("​Hello,​ Scala developer!"​)     println("​Hello,​ Scala developer!"​)
     if (args.length == 0) {     if (args.length == 0) {
Line 149: Line 150:
         val filename = args(0)         val filename = args(0)
     }     }
 + }
 } }
 </​code>​ </​code>​