summaryrefslogtreecommitdiffstats
path: root/Scala
diff options
context:
space:
mode:
Diffstat (limited to 'Scala')
-rw-r--r--Scala/sandbox/3-rationals.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/Scala/sandbox/3-rationals.scala b/Scala/sandbox/3-rationals.scala
index 868f216..8cdf4d7 100644
--- a/Scala/sandbox/3-rationals.scala
+++ b/Scala/sandbox/3-rationals.scala
@@ -33,9 +33,9 @@ object Rationals {
def run = {
println("Rationals")
- println(new Rational(2, 3).add(new Rational(3, 4)).toString)
- println(new Rational(1, 3).sub(new Rational(5 ,7)).sub(new Rational(3, 2)).toString)
- println(new Rational(1, 3).max(new Rational(5 ,7)).toString)
+ println(new Rational(2, 3) add (new Rational(3, 4)) toString)
+ println(new Rational(1, 3) sub (new Rational(5 ,7)) sub (new Rational(3, 2)) toString)
+ println(new Rational(1, 3) max (new Rational(5 ,7)) toString)
}
}