irb(main):001:0> require 'java' => true irb(main):002:0> import 'sample.SamplePerson' => ["sample.SamplePerson"] irb(main):003:0> p = SamplePerson.new => #<Java::Sample::SamplePerson:0x12412e7 @java_object=sample.SamplePerson@10efd7c> irb(main):004:0> p.name = 'yamada' => "yamada" irb(main):005:0> p.name => "yamada" irb(main):006:0> p.age = 20 => 20 irb(main):007:0> p.age => 20 irb(main):008:0> p.items = {:bag => 2, :phone => 1, :shoe => 2} => {:shoe=>2, :bag=>2, :phone=>1} irb(main):009:0> p.items.map {|key, value| key} => [:shoe, :bag, :phone] irb(main):010:0> p.shout_your_name_and_age My name is yamada!!! I am 20years old!!! => nil
log4j.rootLogger=DEBUG, A1 log4j.appender.A1 = org.apache.log4j.ConsoleAppender log4j.appender.A1.Target = System.err log4j.appender.A1.layout = org.apache.log4j.PatternLayout log4j.appender.A1.layout.ConversionPattern=[%-5p] - %m%n log4j.appender.A1.threshold = DEBUG