require 'java'
java_import 'JavaClass'

javaObj = JavaClass.new

names = ["Joe", "Jill", "Jake"]

javaObj.people(names)

result = javaObj.receiveBlock { "This rocks" }

puts result

javaObj.yield

javaObj.def

#If there is a conflict, use obj.send('methodname') to get around