alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Scala example source code file (Course-2002-03-msil.check)

This example Scala source code file (Course-2002-03-msil.check) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Scala tags/keywords

false, false, true, true

The Scala Course-2002-03-msil.check source code

1
2
1/2
5/6

1/3
5/7
3/2
66/42

1/3
5/7
3/2
11/7

11/7
7/11
11/7
11/7

13/36

False
True
True
False

set0 = []
set1 = [1]
set2 = [1,2]
set3 = [1,2,3]
set4 = [1,2,3,4]

set2 contains the following elements:
1
2

set3 contains the following elements:
1
2
3

set4 contains the following elements:
1
2
3
4

2 <- set2: True
3 <- set2: False

setx     = [-10,-1,0,3,5,21]
setx * 2 = [-20,-2,0,6,10,42]

setx        = [-10,-1,0,3,5,21]
sety        = [-9,-5,-1,0,3,7,8]
setx & sety = [-1,0,3]
sety & setx = [-1,0,3]
setx > 0    = [3,5,21]
sety > 0    = [3,7,8]
setx & sety = [-1,0,3]
sety & setx = [-1,0,3]

1/1
1/1
1/1

Other Scala examples (source code examples)

Here is a short list of links related to this Scala Course-2002-03-msil.check source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.