Regular expression split on each char

This example will use a java regular expression to split a string on each character.

@Test
public void split_on_each_char() {
    String sentence = "Daily newspaper for the greater San Francisco area.";

    String[] chars = sentence.split("");

    for (String singleChar: chars) {
        System.out.println(singleChar);
    }

    assertEquals(51, chars.length);
}

Output

D
a
i
l
y

n
e
w
s
p
a
p
e
r

f
o
r

t
h
e

g
r
e
a
t
e
r

S
a
n

F
r
a
n
c
i
s
c
o

a
r
e
a
.