Skip to content

Commit

Permalink
use val in class def
Browse files Browse the repository at this point in the history
  • Loading branch information
tellisnz committed Jan 28, 2016
1 parent e97f991 commit e442839
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/kotlin/FizzBuzz.kt
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
class FizzBuzz(fizzNumber: Int, buzzNumber: Int) {

val fizzNumber = fizzNumber
val buzzNumber = buzzNumber
class FizzBuzz(val fizzNumber: Int, val buzzNumber: Int) {

fun runFizzBuzz(range: Int): Array<Any?> {
val returnArray = arrayOfNulls<Any?>(range)
Expand Down

0 comments on commit e442839

Please sign in to comment.