How do I rewrite this Java statement in Ruby?
for (Map.Entry<byte[], HServerLoad.RegionLoad> entry : serverLoad.getRegionsLoad().entrySet()){
}
Thanks for your help!
If you want to iterate a ruby map(hash) with key and values you could write
h.each { |k, v| puts "Key=#{k}, Value=#{v}" }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With