public class Test5E extends Object
Constructor and Description |
---|
Test5E() |
Modifier and Type | Method and Description |
---|---|
static int |
length(List<String> sentence)
Returns the length of the concatenation of the strings of the given list.
|
static int |
length(List<String> sentence,
int begin)
Returns the length of the concatenation of the strings of the
sub list of the given list starting at the given begin index.
|
static int |
max(String digits)
Returns the maximum of the digits of the given string.
|
public static int max(String digits)
digits
- a string consisting of only digits.public static int length(List<String> sentence)
sentence
- a list of strings.public static int length(List<String> sentence, int begin)
sentence
- a list of strings.begin
- the begin index of the sub list