From cfcf121e8a8082ffa12b86ec7d5f61e95e345486 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sat, 29 Jun 2013 16:05:18 +0200 Subject: [PATCH] Add toStringWithCommas and toStringWithFrenchCommas methods. --- src/fr/devinsy/util/StringList.java | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/fr/devinsy/util/StringList.java b/src/fr/devinsy/util/StringList.java index bd9ea6b..0243e6f 100755 --- a/src/fr/devinsy/util/StringList.java +++ b/src/fr/devinsy/util/StringList.java @@ -383,6 +383,32 @@ public class StringList extends ArrayList return (result); } + /** + * + */ + public String toStringWithCommas() + { + String result; + + result = this.toStringSeparatedBy(","); + + // + return (result); + } + + /** + * + */ + public String toStringWithFrenchCommas() + { + String result; + + result = this.toStringSeparatedBy(", "); + + // + return (result); + } + /** * */