Add function multiply.
This commit is contained in:
parent
fdedacdac8
commit
749f49dba5
2 changed files with 19 additions and 0 deletions
19
src/fr/devinsy/util/StringList.java
Executable file → Normal file
19
src/fr/devinsy/util/StringList.java
Executable file → Normal 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
@ -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
BIN
tests/TestTree/xine.jpg
Normal file
Binary file not shown.
Before Width: | Height: | Size: 19 B After Width: | Height: | Size: 14 KiB |
Loading…
Reference in a new issue