Created
July 16, 2012 11:00
-
-
Save wendal/3122132 to your computer and use it in GitHub Desktop.
简单的List嵌套
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ListList { | |
private List<Object[]> list = new ArrayList<Object[]>(); | |
public void add(Object ...objs) { | |
list.add(objs); | |
} | |
public String toJson(JsonFormat format) { | |
return Json.toJson(list, format); | |
} | |
public String toString() { | |
return list.toString(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment