Skip to content

Instantly share code, notes, and snippets.

@henteko
Created June 7, 2016 08:17
Show Gist options
  • Save henteko/8af8994e5a1e693bb180272d74aa9c94 to your computer and use it in GitHub Desktop.
Save henteko/8af8994e5a1e693bb180272d74aa9c94 to your computer and use it in GitHub Desktop.
public class Hoge {
public Main(String one, String two) {
Map<String, Object> map = new Map<>();
if (one != null) { map.put("oneParam", one) }
if (two != null) { map.put("twoParam", two) }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment