Skip to content

Commit

Permalink
Used static imports to simpify the math calls
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmccullough committed May 7, 2011
1 parent 2956e1d commit 369adba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Main.groovy
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import static Square.square
import static Sum.sum

def name = "Matthew"
int programmingPoints = 10

println "Hello ${name}"
println "${name} has at least ${programmingPoints} programming points."
println "${programmingPoints} squared is ${Square.square(programmingPoints)}"
println "${programmingPoints} plus 3 bonus points is ${Sum.sum(programmingPoints, 3)}"
println "${programmingPoints} squared is ${square(programmingPoints)}"
println "${programmingPoints} plus 3 bonus points is ${sum(programmingPoints, 3)}"

0 comments on commit 369adba

Please sign in to comment.