scala

Groovy (beta) code posted by Nicholas Ren
created at 13 Oct 13:25, updated at 19 Mar 10:41

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
package objsets

import common._
import TweetReader._

class Tweet(val user: String, val text: String, val retweets: Int) {

  override def toString: String =
    "User: " + user + "\n" +
    "Text: " + text + " [" + retweets + "]"

}
247 Bytes in 2 ms with coderay