Add function multiply.

This commit is contained in:
Christian P. MOMON 2010-08-12 00:09:10 +02:00
parent fdedacdac8
commit 749f49dba5
2 changed files with 19 additions and 0 deletions

19
src/fr/devinsy/util/StringList.java Executable file → Normal file
View file

@ -282,6 +282,25 @@ public class StringList extends ArrayList<String>
} }
/**
*
*/
static public String multiply(String source, int number)
{
String result;
StringList strings = new StringList();
for (int index = 0; index < number; index++)
{
strings.append(source);
}
result = strings.toString();
//
return(result);
}
/** /**
* *

View file

@ -1 +0,0 @@
xine_snapshot-4.jpg

Before

Width:  |  Height:  |  Size: 19 B

After

Width:  |  Height:  |  Size: 14 KiB

BIN
tests/TestTree/xine.jpg Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 B

After

Width:  |  Height:  |  Size: 14 KiB