public class Test5B extends Object
Constructor and Description |
---|
Test5B() |
Modifier and Type | Method and Description |
---|---|
static String |
concat(List<Character> letters)
Returns the string consisting of the characters of the given list.
|
static String |
concat(List<Character> letters,
int begin)
Returns the string consisting of the characters of the sub list
of the given list, beginning at the given index.
|
static String |
convert(String binary)
Returns the conversion of the given string by replacing each
0 (zero) with O (capital o) and each 1 with I.
|
public static String convert(String binary)
binary
- a string of 0s and 1spublic static String concat(List<Character> letters)
letters
- a list of characterspublic static String concat(List<Character> letters, int begin)
letters
- a list of charactersbegin
- the begin index of the sub list