Java String And Array Methods In Ruby