Here is the same code in Scala ``` val path1 =...
# announcements
e
Here is the same code in Scala
Copy code
val path1 = FileSystems.getDefault().getPath("""D:\Scanned\2014-04-08 Board Letter.pdf""");
    val path2 = FileSystems.getDefault().getPath("""D:\Scanned\2014-05-25 Kay PoA.pdf""");
    val path3 = FileSystems.getDefault().getPath("""D:\Scanned\2014-05-25 Kay TD.pdf""");

    var paths = List[Path]()
    
    paths ::= path1
    paths ::= path2
    paths ::= path3
    
    paths.foreach { println }
produces
Copy code
D:\Scanned\2014-05-25 Kay TD.pdf
D:\Scanned\2014-05-25 Kay PoA.pdf
D:\Scanned\2014-04-08 Board Letter.pdf
which does what I consider is the right thing.