Skip to content

Instantly share code, notes, and snippets.

View nebosuke's full-sized avatar

Kensuke ISHIDA nebosuke

  • DreamArts Corp.
  • Facebook knske
View GitHub Profile
System.out.print(new SmartArray(new String[] { "Hello", "World!", "Java" })
.map(new SmartArray.Op<String, Integer>() {
public Integer op(String s) {
return s.length();
}
})
.max());
print [ "Hello", "World!", "Ruby" ].map{|e| e.length }.max