Skip to content

Instantly share code, notes, and snippets.

@ayato-p
Last active December 30, 2015 05:19
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayato-p/7781359 to your computer and use it in GitHub Desktop.
Save ayato-p/7781359 to your computer and use it in GitHub Desktop.
Set<String> keys = map.keySet();
for (String key : keys) {
//some condes
}
//↑が↓になった
Set<String> keys = map.keySet();
String[] keyarray = keys.toString().split(",");
for(int i=0; i<keyarray.length; i++){
//soem codes
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment