[遊んでみた]RubyでJavaを書く



def public(*args)
  
end

def static(*args)
end

def void(*args)
end

def main(args,&block)
  yield if block_given?
end

class Out

  def println(str)
    puts str
  end

end

class System

  @@out=Out.new

  class << self
    def out
      @@out
    end
  end

end


public static void main(ARGV) {
  System.out.println('Hello,world!')
}