// Collection of code snippets by Arne Vajhøj 
// (from articles on eksperten.dk / vajhoej.dk written sometime between 2004 and now) 
package jwj

import scala.beans.BeanProperty

class ScalaClass(@BeanProperty var v: Int) {
  def m() = { println(s"v=$v") }
}

object Scala {
  def main(args: Array[String]): Unit = {
    val oj = new JavaClass()
    oj.setV(123)
    oj.m()
    oj.callback()
  }
}
