mirror of
https://github.com/corda/corda.git
synced 2025-06-15 21:58:17 +00:00
implement TreeSet.toString()
This commit is contained in:
@ -3,10 +3,10 @@ package java.util;
|
||||
public class Collections {
|
||||
private Collections() { }
|
||||
|
||||
static String toString(List l) {
|
||||
static String toString(Collection c) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("[");
|
||||
for (Iterator it = l.iterator(); it.hasNext();) {
|
||||
for (Iterator it = c.iterator(); it.hasNext();) {
|
||||
sb.append(it.next());
|
||||
if (it.hasNext()) {
|
||||
sb.append(",");
|
||||
|
Reference in New Issue
Block a user